@absolutejs/auth 0.55.3 → 0.55.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/authorization/protectPermission.d.ts +2 -2
- package/dist/compliance/routes.d.ts +2 -2
- package/dist/credentials/login.d.ts +2 -2
- package/dist/credentials/register.d.ts +2 -2
- package/dist/credentials/routes.d.ts +2 -2
- package/dist/htmx/routes.d.ts +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js.map +2 -2
- package/dist/mfa/challenge.d.ts +2 -2
- package/dist/mfa/management.d.ts +2 -2
- package/dist/mfa/routes.d.ts +2 -2
- package/dist/mfa/sms.d.ts +2 -2
- package/dist/mfa/totp.d.ts +2 -2
- package/dist/oidc/routes.d.ts +2 -2
- package/dist/organizations/routes.d.ts +2 -3
- package/dist/passwordless/routes.d.ts +6 -7
- package/dist/roles/routes.d.ts +2 -3
- package/dist/routes/callback.d.ts +2 -2
- package/dist/routes/profile.d.ts +2 -2
- package/dist/routes/protectRoute.d.ts +2 -2
- package/dist/routes/refresh.d.ts +2 -2
- package/dist/routes/revoke.d.ts +2 -2
- package/dist/routes/sessions.d.ts +2 -2
- package/dist/routes/signout.d.ts +3 -3
- package/dist/routes/stepUp.d.ts +2 -2
- package/dist/routes/userStatus.d.ts +2 -2
- package/dist/server.js.map +2 -2
- package/dist/session/cleanup.d.ts +3 -3
- package/dist/session/internalData.d.ts +34 -0
- package/dist/session/state.d.ts +3 -3
- package/dist/sso/oidcRoutes.d.ts +2 -2
- package/dist/sso/samlIdpRoutes.d.ts +3 -3
- package/dist/sso/samlRoutes.d.ts +2 -3
- package/dist/webauthn/routes.d.ts +2 -2
- package/package.json +1 -1
|
@@ -13,8 +13,8 @@ type PermissionFailError = {
|
|
|
13
13
|
export declare const protectPermissionPlugin: <UserType>({ authSessionStore, emit, hasPermission }: AuthorizationPluginProps<UserType>) => Elysia<"", {
|
|
14
14
|
decorator: {};
|
|
15
15
|
store: {
|
|
16
|
-
session: import("
|
|
17
|
-
unregisteredSession: import("
|
|
16
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
17
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
18
18
|
};
|
|
19
19
|
derive: {
|
|
20
20
|
readonly protectPermission: <AuthReturn, AuthFailReturn>(check: PermissionCheck, handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: (error: PermissionFailError) => AuthFailReturn) => Promise<import("elysia").ElysiaCustomStatusResponse<"Bad Request", "Cookies are missing", 400> | import("elysia").ElysiaCustomStatusResponse<"Unauthorized", "User is not authenticated", 401> | AuthReturn | NonNullable<AuthFailReturn> | import("elysia").ElysiaCustomStatusResponse<"Forbidden", "Insufficient permissions", 403>>;
|
|
@@ -3,8 +3,8 @@ import type { CompliancePluginProps } from './config';
|
|
|
3
3
|
export declare const complianceRoutes: <UserType>({ authSessionStore, complianceRoute, deleteUserData, emit, exportUserData, getUserId }: CompliancePluginProps<UserType>) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {
|
|
6
|
-
session: import("
|
|
7
|
-
unregisteredSession: import("
|
|
6
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
7
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
8
8
|
};
|
|
9
9
|
derive: {};
|
|
10
10
|
resolve: {};
|
|
@@ -3,8 +3,8 @@ import { type CredentialRouteProps } from './config';
|
|
|
3
3
|
export declare const credentialsLogin: <UserType>({ authSessionStore, checkBreachesOnLogin, cookieSecure, credentialStore, getUserByEmail, isMfaRequired, lockoutGuard, loginRoute, onCredentialsLoginError, onCredentialsLoginSuccess, passwordVerifier, rehashOnLogin, requireEmailVerification, sessionDurationMs }: CredentialRouteProps<UserType>) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {
|
|
6
|
-
session: import("
|
|
7
|
-
unregisteredSession: import("
|
|
6
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
7
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
8
8
|
};
|
|
9
9
|
derive: {};
|
|
10
10
|
resolve: {};
|
|
@@ -3,8 +3,8 @@ import { type CredentialRouteProps } from './config';
|
|
|
3
3
|
export declare const credentialsRegister: <UserType>({ authSessionStore, cookieSecure, credentialStore, onCreateCredentialUser, onCredentialsLoginSuccess, onRegistrationSuccess, onSendEmail, passwordPolicy, registerRoute, requireEmailVerification, sessionDurationMs, verificationTokenDurationMs }: CredentialRouteProps<UserType>) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {
|
|
6
|
-
session: import("
|
|
7
|
-
unregisteredSession: import("
|
|
6
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
7
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
8
8
|
};
|
|
9
9
|
derive: {};
|
|
10
10
|
resolve: {};
|
|
@@ -3,8 +3,8 @@ import type { CredentialRouteProps } from './config';
|
|
|
3
3
|
export declare const credentialRoutes: <UserType>(config: CredentialRouteProps<UserType>) => Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {
|
|
6
|
-
session: import("
|
|
7
|
-
unregisteredSession: import("
|
|
6
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
7
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
8
8
|
};
|
|
9
9
|
derive: {};
|
|
10
10
|
resolve: {};
|
package/dist/htmx/routes.d.ts
CHANGED
|
@@ -6,8 +6,8 @@ export declare const createAuthHtmxRoutes: <UserType extends AuthHtmxUser>(confi
|
|
|
6
6
|
}) => Elysia<"", {
|
|
7
7
|
decorator: {};
|
|
8
8
|
store: {
|
|
9
|
-
session: import("
|
|
10
|
-
unregisteredSession: import("
|
|
9
|
+
session: import("../session/internalData").InternalSessionRecord<UserType>;
|
|
10
|
+
unregisteredSession: import("../session/internalData").InternalUnregisteredSessionRecord;
|
|
11
11
|
};
|
|
12
12
|
derive: {
|
|
13
13
|
readonly protectRoute: <AuthReturn, AuthFailReturn>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
|
package/dist/index.d.ts
CHANGED
|
@@ -3,8 +3,8 @@ import { AuthConfig } from './types';
|
|
|
3
3
|
export declare const auth: <UserType>({ providersConfiguration, authorizeRoute, cookieSecure, callbackRoute, profileRoute, signoutRoute, statusRoute, refreshRoute, revokeRoute, cleanupIntervalMs, maxSessions, sessionDurationMs, authSessionStore, audit, credentials, customProviders, mfa, passwordless, lockout, sessions, sso, scim, apikeys, agentAuth, oidc, organizations, roles, portal, authorization, compliance, webauthn, webhooks, htmx, tracing, resolveAuthIntent, onAuthorizeSuccess, onAuthorizeError, onProfileSuccess, onProfileError, onCallbackSuccess, onLinkIdentity, onLinkIdentityConflict, onLinkConnector, onCallbackError, onStatus, onRefreshSuccess, onRefreshError, onSignOut, onRevocationSuccess, onRevocationError, onSessionCleanup }: AuthConfig<UserType>) => Promise<Elysia<"", {
|
|
4
4
|
decorator: {};
|
|
5
5
|
store: {
|
|
6
|
-
session: import("./
|
|
7
|
-
unregisteredSession: import("./
|
|
6
|
+
session: import("./session/internalData").InternalSessionRecord<UserType>;
|
|
7
|
+
unregisteredSession: import("./session/internalData").InternalUnregisteredSessionRecord;
|
|
8
8
|
};
|
|
9
9
|
derive: {
|
|
10
10
|
readonly protectRoute: <AuthReturn, AuthFailReturn>(handleAuth: (user: UserType) => AuthReturn | Promise<AuthReturn>, handleAuthFail?: ((error: {
|