@delmaredigital/payload-better-auth 0.7.5 → 0.7.6
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 +1 -1
- package/dist/exports/client.js +4 -0
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -178,7 +178,7 @@ export default async function Dashboard() {
|
|
|
178
178
|
|
|
179
179
|
---
|
|
180
180
|
|
|
181
|
-
For MongoDB setup, API reference, customization, access control helpers, API key scopes, plugin compatibility, UI components (2FA, passkeys, password reset), recipes, and types — see the **[full documentation](https://delmaredigital.github.io/payload-better-auth/)**.
|
|
181
|
+
For MongoDB setup, API reference, customization, access control helpers, API key scopes, plugin compatibility, UI components (2FA, passkeys, password reset, passwordless login via magic-link & email-OTP), recipes, and types — see the **[full documentation](https://delmaredigital.github.io/payload-better-auth/)**.
|
|
182
182
|
|
|
183
183
|
## License
|
|
184
184
|
|
package/dist/exports/client.js
CHANGED
|
@@ -53,6 +53,10 @@ export { twoFactorClient } from 'better-auth/client/plugins';
|
|
|
53
53
|
* })
|
|
54
54
|
* ```
|
|
55
55
|
*/ export function createPayloadAuthClient(options) {
|
|
56
|
+
// `payloadAuthPlugins` is intentionally widened to `BetterAuthClientPlugin[]` for
|
|
57
|
+
// declaration-emit portability. That widening makes the inferred return type drop
|
|
58
|
+
// some base-client methods (e.g. `refreshToken`, present at runtime) relative to the
|
|
59
|
+
// zero-arg `ReturnType<typeof createAuthClient>`, so we cast back to the stable type.
|
|
56
60
|
return createAuthClient({
|
|
57
61
|
baseURL: options?.baseURL ?? (typeof window !== 'undefined' ? window.location.origin : ''),
|
|
58
62
|
plugins: [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@delmaredigital/payload-better-auth",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.6",
|
|
4
4
|
"description": "Better Auth adapter and plugins for Payload CMS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -113,9 +113,9 @@
|
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
115
|
"devDependencies": {
|
|
116
|
-
"@better-auth/api-key": "^1.6.
|
|
117
|
-
"@better-auth/oauth-provider": "^1.6.
|
|
118
|
-
"@better-auth/passkey": "^1.6.
|
|
116
|
+
"@better-auth/api-key": "^1.6.18",
|
|
117
|
+
"@better-auth/oauth-provider": "^1.6.18",
|
|
118
|
+
"@better-auth/passkey": "^1.6.18",
|
|
119
119
|
"@payloadcms/next": "^3.85.0",
|
|
120
120
|
"@payloadcms/ui": "^3.85.0",
|
|
121
121
|
"@swc/cli": "^0.6.0",
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
"@types/node": "^24.12.2",
|
|
124
124
|
"@types/react": "^19.2.14",
|
|
125
125
|
"@vitest/coverage-v8": "^4.1.8",
|
|
126
|
-
"better-auth": "^1.6.
|
|
126
|
+
"better-auth": "^1.6.18",
|
|
127
127
|
"next": "^16.2.5",
|
|
128
128
|
"payload": "^3.85.0",
|
|
129
129
|
"react": "^19.2.5",
|