@protobase/client 0.46.14 → 0.46.15
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/dist/auth-types.d.ts +2 -1
- package/dist/auth.js +1 -0
- package/package.json +3 -3
package/dist/auth-types.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ export type SamlSignIn = {
|
|
|
31
31
|
};
|
|
32
32
|
/**
|
|
33
33
|
* `needsAdmin` while no user exists yet; `signInMethods` the ways to sign in the server's policy leaves on;
|
|
34
|
-
* `passwordReset` when the server can email reset links; `changeEmail` when it can email the code that confirms a new
|
|
34
|
+
* `signInFirst` when the sign-in page leads with an emailed code, with the password behind "Use a password"; `passwordReset` when the server can email reset links; `changeEmail` when it can email the code that confirms a new
|
|
35
35
|
* address (see `account.requestEmailChange`); `signUp` when anyone can make their own account (see
|
|
36
36
|
* `sendSignUpCode`); `socialProviders` the ids of the sign-in providers, for example
|
|
37
37
|
* `github`; `platformSignIn` the one of them the platform adds; `samlProviders` the app's SAML identity providers; `staffSignIn` the operator provider's name when its staff
|
|
@@ -43,6 +43,7 @@ export type SamlSignIn = {
|
|
|
43
43
|
export type SetupStatus = {
|
|
44
44
|
needsAdmin: boolean;
|
|
45
45
|
signInMethods: SignInMethod[];
|
|
46
|
+
signInFirst?: 'emailCode';
|
|
46
47
|
passwordReset: boolean;
|
|
47
48
|
changeEmail?: boolean;
|
|
48
49
|
signUp?: boolean;
|
package/dist/auth.js
CHANGED
|
@@ -76,6 +76,7 @@ const createAuthSession = (options = {}) => {
|
|
|
76
76
|
return {
|
|
77
77
|
needsAdmin: Boolean(body.needsAdmin),
|
|
78
78
|
signInMethods: body.signInMethods ?? ["password"],
|
|
79
|
+
...body.signInFirst === "emailCode" && { signInFirst: "emailCode" },
|
|
79
80
|
passwordReset: Boolean(body.passwordReset),
|
|
80
81
|
...body.changeEmail && { changeEmail: true },
|
|
81
82
|
...body.signUp && { signUp: true },
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@protobase/client",
|
|
3
|
-
"version": "0.46.
|
|
3
|
+
"version": "0.46.15",
|
|
4
4
|
"description": "Typed fetch client for the Protobase REST API.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -30,8 +30,8 @@
|
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@better-auth/passkey": "^1.7.12",
|
|
33
|
-
"@protobase/layout": "0.46.
|
|
34
|
-
"@protobase/schema": "0.46.
|
|
33
|
+
"@protobase/layout": "0.46.15",
|
|
34
|
+
"@protobase/schema": "0.46.15",
|
|
35
35
|
"@simplewebauthn/browser": "^13.3.0",
|
|
36
36
|
"better-auth": "^1.7.12"
|
|
37
37
|
}
|