better-auth-evp 1.0.5 → 1.0.7
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/CHANGELOG.md +4 -0
- package/README.md +11 -8
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.0.7](https://github.com/qamarq/better-auth-evp/compare/v1.0.6...v1.0.7) (2026-09-01)
|
|
2
|
+
|
|
3
|
+
## [1.0.6](https://github.com/qamarq/better-auth-evp/compare/v1.0.5...v1.0.6) (2026-09-01)
|
|
4
|
+
|
|
1
5
|
## [1.0.5](https://github.com/qamarq/better-auth-evp/compare/v1.0.4...v1.0.5) (2026-09-01)
|
|
2
6
|
|
|
3
7
|
## [1.0.4](https://github.com/qamarq/better-auth-evp/compare/v1.0.3...v1.0.4) (2026-09-01)
|
package/README.md
CHANGED
|
@@ -24,7 +24,7 @@ npm install better-auth-evp email-verification-api
|
|
|
24
24
|
### Peer Dependencies
|
|
25
25
|
|
|
26
26
|
- `better-auth` ^1.5.0
|
|
27
|
-
- `email-verification-api` ^0.1.0 (does the actual SD-JWT/DNS/issuer verification)
|
|
27
|
+
- [`email-verification-api`](https://www.npmjs.com/package/email-verification-api) ^0.1.0 (does the actual SD-JWT/DNS/issuer verification, built by the folks at [Resend](https://resend.com))
|
|
28
28
|
- `zod` ^3.0.0 || ^4.0.0
|
|
29
29
|
|
|
30
30
|
## Server Setup
|
|
@@ -75,16 +75,19 @@ export const authClient = createAuthClient({
|
|
|
75
75
|
|
|
76
76
|
## Origin Trial Token
|
|
77
77
|
|
|
78
|
-
As a participating site you must register for the origin trial and serve the token on any page that renders the email form
|
|
78
|
+
As a participating site you must register for the origin trial and serve the token on any page that renders the email form.
|
|
79
79
|
|
|
80
|
-
|
|
81
|
-
<meta http-equiv="origin-trial" content="YOUR_TOKEN" />
|
|
82
|
-
```
|
|
80
|
+
To get your token:
|
|
83
81
|
|
|
84
|
-
|
|
82
|
+
1. Go to the [EVP origin trial registration page](https://developer.chrome.com/origintrials/#/register_trial/10696049115004929) and sign in.
|
|
83
|
+
2. Enter your web origin (and check the box if you want to match subdomains too).
|
|
84
|
+
3. Accept the terms.
|
|
85
|
+
4. Copy the generated token.
|
|
85
86
|
|
|
86
|
-
|
|
87
|
-
|
|
87
|
+
Then serve it as a meta tag in the `<head>` of any page that renders the email form (we don't use the `Origin-Trial` HTTP header):
|
|
88
|
+
|
|
89
|
+
```html
|
|
90
|
+
<meta http-equiv="origin-trial" content="YOUR_TOKEN" />
|
|
88
91
|
```
|
|
89
92
|
|
|
90
93
|
This plugin does not manage that token for you - it's static per-origin configuration, not something to fetch from an API.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth-evp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "Email Verification Protocol (Chrome origin trial) plugin for Better Auth, with automatic fallback to any other sign-in method",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|