@dymo-api/better-auth 1.2.24 → 1.2.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -61,4 +61,34 @@ export const auth = betterAuth({
|
|
|
61
61
|
});
|
|
62
62
|
```
|
|
63
63
|
|
|
64
|
+
#### IP Validation (Experimental)
|
|
65
|
+
|
|
66
|
+
```ts
|
|
67
|
+
export const auth = betterAuth({
|
|
68
|
+
plugins: [
|
|
69
|
+
dymoIPPlugin({
|
|
70
|
+
apiKey: "YOUR_API_KEY_HERE",
|
|
71
|
+
ipRules: {
|
|
72
|
+
deny: ["FRAUD", "INVALID", "TOR_NETWORK"]
|
|
73
|
+
}
|
|
74
|
+
})
|
|
75
|
+
]
|
|
76
|
+
});
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
#### Phone Validation
|
|
80
|
+
|
|
81
|
+
```ts
|
|
82
|
+
export const auth = betterAuth({
|
|
83
|
+
plugins: [
|
|
84
|
+
dymoPhonePlugin({
|
|
85
|
+
apiKey: "YOUR_API_KEY_HERE",
|
|
86
|
+
phoneRules: {
|
|
87
|
+
deny: ["FRAUD", "INVALID"]
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
]
|
|
91
|
+
});
|
|
92
|
+
```
|
|
93
|
+
|
|
64
94
|
More types of validations coming soon to keep you protected.
|