@absolutejs/auth 0.31.0 → 0.32.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/dist/index.d.ts +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +3 -3
- package/dist/routes/signout.d.ts +1 -1
- package/dist/types.d.ts +5 -1
- package/package.json +1 -1
package/dist/routes/signout.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ export declare const signout: <UserType>({ authSessionStore, signoutRoute, onSig
|
|
|
33
33
|
headers: unknown;
|
|
34
34
|
response: {
|
|
35
35
|
400: "Cookies are missing";
|
|
36
|
-
401: "No
|
|
36
|
+
401: "No user session id found";
|
|
37
37
|
200: Response;
|
|
38
38
|
422: {
|
|
39
39
|
type: "validation";
|
package/dist/types.d.ts
CHANGED
|
@@ -175,7 +175,11 @@ export type OnStatus<UserType> = (({ user }: {
|
|
|
175
175
|
user: UserType | null;
|
|
176
176
|
}) => void | Promise<void>) | undefined;
|
|
177
177
|
export type OnSignOut<UserType> = (({ authProvider, userSessionId, session }: {
|
|
178
|
-
|
|
178
|
+
/** Set only when the session was minted by the OAuth2 `/authorize` flow —
|
|
179
|
+
* credentials, MFA, passwordless, SSO, WebAuthn, and impersonation-minted
|
|
180
|
+
* sessions sign out without one. Use it to revoke the upstream provider
|
|
181
|
+
* token when present; ignore when undefined. */
|
|
182
|
+
authProvider: string | undefined;
|
|
179
183
|
userSessionId: UserSessionId;
|
|
180
184
|
session: SessionRecord<UserType>;
|
|
181
185
|
}) => void | Promise<void>) | undefined;
|
package/package.json
CHANGED