@absolutejs/auth 0.17.3 → 0.17.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/dist/src/types.d.ts +1 -1
- package/package.json +1 -1
package/dist/src/types.d.ts
CHANGED
|
@@ -21,7 +21,7 @@ export type UnregisteredSessionRecord = Record<string, {
|
|
|
21
21
|
userIdentity: Record<string, unknown>;
|
|
22
22
|
expiresAt: number;
|
|
23
23
|
}>;
|
|
24
|
-
export type OnNewUser<UserType> = (userIdentity: Record<string, unknown>) => UserType |
|
|
24
|
+
export type OnNewUser<UserType> = (userIdentity: Record<string, unknown>) => UserType | Response | StatusReturn | Promise<UserType | Response | StatusReturn>;
|
|
25
25
|
export type GetUser<UserType> = (userIdentity: Record<string, unknown>) => UserType | null | undefined | Promise<UserType | null | undefined>;
|
|
26
26
|
export type CallbackCookie = Record<string, Cookie<string | undefined>> & {
|
|
27
27
|
user_session_id: Cookie<`${string}-${string}-${string}-${string}-${string}` | undefined>;
|
package/package.json
CHANGED