/** * This Source Code is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. * * Copyright (c) Infonomic Company Limited */ export { type AbilityDescriptor, AbilityRegistry, } from './abilities.js'; export { type Actor, AdminAuth, isAdminAuth, isUserAuth, UserAuth, } from './actor.js'; export { createRequestContext, createSuperAdminContext, type RequestContext, } from './context.js'; export { AuthError, type AuthErrorCode, AuthErrorCodes, type AuthErrorOptions, ERR_ACCESS_EXPIRED, ERR_ACCOUNT_DISABLED, ERR_FORBIDDEN, ERR_INVALID_CREDENTIALS, ERR_INVALID_TOKEN, ERR_REVOKED_TOKEN, ERR_SESSION_CHANGED, ERR_UNAUTHENTICATED, } from './errors.js'; export { MAX_PASSWORD_LENGTH, MAX_SIGN_IN_EMAIL_LENGTH } from './password-sign-in.js'; export type { ClientIpResolver, PasswordSignInLimiter, PasswordSignInProtection, SignInAdmission, } from './password-sign-in.js'; export type { AccessTokenPayload, RefreshSessionArgs, RevokeSessionArgs, SessionProvider, SessionProviderCapabilities, SessionTokens, SignInResult, SignInWithPasswordArgs, } from './session-provider.js';