@dymo-api/better-auth 1.2.12 → 1.2.13
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 +38 -0
- package/package.json +1 -1
package/README.md
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Official Dymo API Library for Better Auth.
|
|
2
|
+
|
|
3
|
+
You can see the library documentation by clicking [here](https://docs.tpeoficial.com/docs/dymo-api/getting-started/libraries?ch-pg=r-dm-node).
|
|
4
|
+
|
|
5
|
+
#### Installation
|
|
6
|
+
|
|
7
|
+
Use one of the following commands to install **Dymo API** in your `TS`/`JS` project.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm i @dymo-api/better-auth
|
|
11
|
+
|
|
12
|
+
# or
|
|
13
|
+
|
|
14
|
+
pnpm i @dymo-api/better-auth
|
|
15
|
+
|
|
16
|
+
# or
|
|
17
|
+
|
|
18
|
+
yarn add @dymo-api/better-auth
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#### Authenticating ourselves on the client with the API Key
|
|
22
|
+
|
|
23
|
+
[Get my free API Key](https://tpe.li/new-api-key?ch-pg=gh-dmapi-node-rd-step)
|
|
24
|
+
|
|
25
|
+
#### Email Validation
|
|
26
|
+
|
|
27
|
+
```ts
|
|
28
|
+
export const auth = betterAuth({
|
|
29
|
+
plugins: [
|
|
30
|
+
dymoEmailPlugin({
|
|
31
|
+
apiKey: "YOUR_API_KEY_HERE",
|
|
32
|
+
emailRules: {
|
|
33
|
+
deny: ["FRAUD", "INVALID", "NO_REPLY_EMAIL"]
|
|
34
|
+
}
|
|
35
|
+
})
|
|
36
|
+
]
|
|
37
|
+
});
|
|
38
|
+
```
|