better-auth-evp 1.0.2 → 1.0.4
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/.gitmodules +3 -0
- package/.releaserc.json +6 -1
- package/CHANGELOG.md +4 -0
- package/README.md +12 -0
- package/package.json +1 -1
package/.gitmodules
ADDED
package/.releaserc.json
CHANGED
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"branches": ["main", "master"],
|
|
3
3
|
"plugins": [
|
|
4
|
-
|
|
4
|
+
[
|
|
5
|
+
"@semantic-release/commit-analyzer",
|
|
6
|
+
{
|
|
7
|
+
"releaseRules": [{ "type": "docs", "release": "patch" }]
|
|
8
|
+
}
|
|
9
|
+
],
|
|
5
10
|
"@semantic-release/release-notes-generator",
|
|
6
11
|
"@semantic-release/changelog",
|
|
7
12
|
"@semantic-release/npm",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
## [1.0.4](https://github.com/qamarq/better-auth-evp/compare/v1.0.3...v1.0.4) (2026-09-01)
|
|
2
|
+
|
|
3
|
+
## [1.0.3](https://github.com/qamarq/better-auth-evp/compare/v1.0.2...v1.0.3) (2026-08-31)
|
|
4
|
+
|
|
1
5
|
## [1.0.2](https://github.com/qamarq/better-auth-evp/compare/v1.0.1...v1.0.2) (2026-08-31)
|
|
2
6
|
|
|
3
7
|
|
package/README.md
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
[Email Verification Protocol (EVP)](https://developer.chrome.com/blog/email-verification-protocol-origin-trial) plugin for [Better Auth](https://www.better-auth.com), with automatic fallback to whatever other sign-in method you already have.
|
|
9
9
|
|
|
10
|
+
**[Live preview →](https://evp.kamilmarczak.pl?utm_source=github&utm_medium=referral&utm_campaign=docs)** - a minimal sign-in screen wired up with this plugin, source in [`example`](./example) ([`evp-demo`](https://github.com/qamarq/evp-demo) repo).
|
|
11
|
+
|
|
10
12
|
## What is EVP?
|
|
11
13
|
|
|
12
14
|
EVP is an experimental, **Chrome-only** browser capability (currently gated behind an [origin trial](https://developer.chrome.com/origintrials)) that lets a user prove they own an email address without typing an OTP or clicking a magic link. The browser talks to the user's mailbox provider directly and, if the user is signed in there, hands your form a signed token proving ownership - all triggered by the normal act of filling in and submitting an email field.
|
|
@@ -33,6 +35,16 @@ import { emailVerificationProtocol } from "better-auth-evp";
|
|
|
33
35
|
|
|
34
36
|
export const auth = betterAuth({
|
|
35
37
|
// ...
|
|
38
|
+
account: {
|
|
39
|
+
accountLinking: {
|
|
40
|
+
enabled: true,
|
|
41
|
+
// Add "email-verification-protocol" alongside your other trusted
|
|
42
|
+
// providers (e.g. "email-otp", "magic-link") so a user who already
|
|
43
|
+
// has an account can also sign into it via EVP, instead of getting
|
|
44
|
+
// a separate, unlinked account for the same email.
|
|
45
|
+
trustedProviders: ["email-otp", "email-verification-protocol"],
|
|
46
|
+
},
|
|
47
|
+
},
|
|
36
48
|
plugins: [
|
|
37
49
|
emailVerificationProtocol({
|
|
38
50
|
// Must match the origin your Chrome origin-trial token, DNS
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "better-auth-evp",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
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",
|