您可以点击查看库文档 这里。 。 。 .
- 世界最大的欺诈验证数据库
[email protected]- > (中文) 封锁。 。 。 . - QQ个人邮件和OAuth(今日唯一上市的邮件)的欺诈验证 QQ
[email protected]- > (中文) 封锁。 。 。 . - 校验电子邮件地址、电话号码.
- 数据正常化
[email protected]- > (中文)[email protected](可用normalize: false) (中文(简体) ).
安装
使用以下命令安装 Dymo API 密码 在你身边 TS编号 :JS 项目.
npm cache clean --force && npm i @dymo-api/better-auth
# or
pnpm cache clean --force && pnpm i @dymo-api/better-auth
# or
yarn cache clean --force && yarn add @dymo-api/better-auth
用 API 密钥认证客户端
电子邮件验证
export const auth = betterAuth({
plugins: [
dymoEmailPlugin({
apiKey: "YOUR_API_KEY_HERE",
emailRules: {
deny: ["FRAUD", "INVALID", "NO_REPLY_EMAIL"]
}
// normalize: true (default) - Set to false to disable email normalization
})
]
});
IP 验证( 实验)
export const auth = betterAuth({
plugins: [
dymoIPPlugin({
apiKey: "YOUR_API_KEY_HERE",
ipRules: {
deny: ["FRAUD", "INVALID", "TOR_NETWORK"]
}
// normalize: true (default) - Set to false to disable IP normalization
})
]
});
电话验证
export const auth = betterAuth({
plugins: [
dymoPhonePlugin({
apiKey: "YOUR_API_KEY_HERE",
phoneRules: {
deny: ["FRAUD", "INVALID"]
}
// normalize: true (default) - Set to false to disable phone normalization
})
]
});
更多类型的验证 很快来保护你.
经常被问到的问题
与 Google 等登录时的电子邮件错配错误
Dymo API 密码 默认实现电子邮件正常化,例如删除 . 财务报告和审定财务报表 + 从基于特定提供者的电子邮件中获取,这意味着如果您不同时通过 OAuth 实现登录中的电子邮件的正常化,您将会遇到错配错误 .
要做到这一点,您有两种选择:第一种是同时实现登录电子邮件的正常化,第二种是使用 normalize: false。 。 。 .