@fonderie/auth 2.1.0 → 4.0.0
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/brain/signatures.md +21 -0
- package/dist/index.cjs +124 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +25 -4
- package/dist/index.d.ts +25 -4
- package/dist/index.js +122 -2
- package/dist/index.js.map +1 -1
- package/dist/middlewares/index.d.cts +1 -1
- package/dist/middlewares/index.d.ts +1 -1
- package/dist/{session-BoJjRB7t.d.cts → session-DxsmQjXX.d.cts} +1 -0
- package/dist/{session-BoJjRB7t.d.ts → session-DxsmQjXX.d.ts} +1 -0
- package/package.json +5 -5
|
@@ -47,6 +47,7 @@ interface IAuthConfig extends IAuthSecrets, IAuthRuntimeConfig {
|
|
|
47
47
|
meta: Record<string, unknown>;
|
|
48
48
|
}) => Partial<IAuthRuntimeConfig>;
|
|
49
49
|
routes?: Partial<Record<AuthRouteId, AuthRouteOverride>>;
|
|
50
|
+
legacyVerify?: (plain: string, hash: string) => boolean | Promise<boolean>;
|
|
50
51
|
}
|
|
51
52
|
type AuthRouteId = 'register' | 'login' | 'refresh' | 'forgotPassword' | 'resetPassword' | 'verifyEmail' | 'sendVerification' | 'logout' | 'me' | 'updateProfile' | 'updatePreferences' | 'updateEmail' | 'updatePhone' | 'changePassword' | 'deleteMe' | 'mfaSetup' | 'mfaVerify' | 'mfaDisable' | 'mfaBackupCodes';
|
|
52
53
|
type AuthRouteOverride = string | {
|
|
@@ -47,6 +47,7 @@ interface IAuthConfig extends IAuthSecrets, IAuthRuntimeConfig {
|
|
|
47
47
|
meta: Record<string, unknown>;
|
|
48
48
|
}) => Partial<IAuthRuntimeConfig>;
|
|
49
49
|
routes?: Partial<Record<AuthRouteId, AuthRouteOverride>>;
|
|
50
|
+
legacyVerify?: (plain: string, hash: string) => boolean | Promise<boolean>;
|
|
50
51
|
}
|
|
51
52
|
type AuthRouteId = 'register' | 'login' | 'refresh' | 'forgotPassword' | 'resetPassword' | 'verifyEmail' | 'sendVerification' | 'logout' | 'me' | 'updateProfile' | 'updatePreferences' | 'updateEmail' | 'updatePhone' | 'changePassword' | 'deleteMe' | 'mfaSetup' | 'mfaVerify' | 'mfaDisable' | 'mfaBackupCodes';
|
|
52
53
|
type AuthRouteOverride = string | {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/auth",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "Drop-in auth for SaaS — email/password, phone OTP, Google OAuth, stateless JWT sessions, TOTP-based MFA with backup codes, and self-service password recovery.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fonderie-js",
|
|
@@ -58,12 +58,12 @@
|
|
|
58
58
|
"jsonwebtoken": "^9.0.3",
|
|
59
59
|
"qrcode": "^1.5.4",
|
|
60
60
|
"zod": "^4.4.3",
|
|
61
|
-
"@fonderie/rate-limit": "^
|
|
61
|
+
"@fonderie/rate-limit": "^3.0.0"
|
|
62
62
|
},
|
|
63
63
|
"peerDependencies": {
|
|
64
|
-
"@fonderie/core": "^0.
|
|
65
|
-
"@fonderie/events": "^
|
|
66
|
-
"@fonderie/store": "^0.
|
|
64
|
+
"@fonderie/core": "^0.4.0",
|
|
65
|
+
"@fonderie/events": "^4.0.0",
|
|
66
|
+
"@fonderie/store": "^0.2.0"
|
|
67
67
|
},
|
|
68
68
|
"peerDependenciesMeta": {
|
|
69
69
|
"@fonderie/events": {
|