@absolutejs/auth 0.57.1 → 0.57.2
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/types.d.ts +3 -3
- package/package.json +1 -1
package/dist/types.d.ts
CHANGED
|
@@ -125,7 +125,7 @@ export type ResolvedOAuthAuthorization = {
|
|
|
125
125
|
};
|
|
126
126
|
export type StatusReturn = Pick<ElysiaCustomStatusResponse<number | keyof StatusMap, unknown>, 'code' | 'response'>;
|
|
127
127
|
export type OnNewUser<UserType> = (userIdentity: Record<string, unknown>) => UserType | StatusReturn | Response | Promise<UserType | StatusReturn | Response>;
|
|
128
|
-
export type GetUser<UserType> = (userIdentity: Record<string, unknown>) => UserType | null | undefined | Promise<UserType | null | undefined>;
|
|
128
|
+
export type GetUser<UserType> = (userIdentity: Record<string, unknown>) => UserType | StatusReturn | Response | null | undefined | Promise<UserType | StatusReturn | Response | null | undefined>;
|
|
129
129
|
export type CallbackCookie = Record<string, Cookie<unknown>> & {
|
|
130
130
|
auth_client: Cookie<string | undefined>;
|
|
131
131
|
auth_intent: Cookie<AuthIntent | undefined>;
|
|
@@ -413,8 +413,8 @@ export type InsantiateUserSessionProps<UserType> = {
|
|
|
413
413
|
unregisteredSession: UnregisteredSessionRecord;
|
|
414
414
|
providerInstance: OAuth2Client<ProviderOption>;
|
|
415
415
|
user_session_id: Cookie<UserSessionId | undefined>;
|
|
416
|
-
onNewUser: OnNewUser<UserType
|
|
417
|
-
getUser: GetUser<UserType
|
|
416
|
+
onNewUser: OnNewUser<NoInfer<UserType>>;
|
|
417
|
+
getUser: GetUser<NoInfer<UserType>>;
|
|
418
418
|
cookieSecure?: boolean;
|
|
419
419
|
resolvedAuthorization?: ResolvedOAuthAuthorization;
|
|
420
420
|
sessionDurationMs?: number;
|
package/package.json
CHANGED