release: WRNexusJS 0.5.0

This commit is contained in:
2026-07-29 12:51:10 +05:30
parent 76c768099d
commit 6afe32f63f
456 changed files with 40879 additions and 8850 deletions
+103
View File
@@ -0,0 +1,103 @@
export { createAuthEngine, type AuthEngine } from "./engine.ts";
export type { AuthStore } from "./store.ts";
export { MemoryAuthStore } from "./stores/memory.ts";
export { SqlAuthStore } from "./stores/sql.ts";
export {
authSession,
requireAuth,
establishAuthSession,
clearAuthSession,
getAuthUser,
getAuthSession,
isAuthenticatedContext,
AUTH_SESSION_KEY,
} from "./middleware.ts";
export {
createAuthHttpHandlers,
type AuthHttpOptions,
type AuthPasskeyHttpOptions,
} from "./http/index.ts";
export {
authPlugin,
authComponentsDir,
type AuthConfig,
type AuthRoutesConfig,
type AuthPluginOptions,
type AuthAuditIssue,
} from "./plugin.ts";
export {
setDefaultAuthEngine,
clearDefaultAuthEngine,
setDefaultAuthSchemas,
setDefaultAuthRouteOptions,
tryGetDefaultAuthEngine,
getDefaultAuthEngine,
getDefaultAuthSchemas,
getDefaultAuthRouteOptions,
hasDefaultAuthEngine,
type DefaultAuthRouteOptions,
} from "./runtime.ts";
export { createAuthSecretProtector } from "./protector.ts";
export { evaluateAuthRisk, type RiskPolicy } from "./risk.ts";
export {
normalizeEmail,
normalizePhone,
normalizeUsername,
normalizeIdentity,
inferIdentityType,
publicUser,
safeAuthReturnTo,
} from "./normalize.ts";
export {
generateTotpSecret,
generateTotp,
verifyTotp,
totpUri,
encodeBase32,
decodeBase32,
} from "./totp/index.ts";
export {
MemoryPasskeyChallengeStore,
assertPasskeyProvider,
type PasskeyChallengeStore,
type PasskeyChallengeRecord,
type PasskeyChallengeKind,
} from "./passkeys/index.ts";
export * from "./types.ts";
export {
registerSchema,
signUpSchema,
loginSchema,
verificationRequestSchema,
verificationTokenSchema,
passwordResetRequestSchema,
passwordResetSchema,
invitationAcceptSchema,
magicLinkRequestSchema,
magicLinkConsumeSchema,
otpLoginRequestSchema,
otpLoginCompleteSchema,
otpIssueSchema,
otpSchema,
mfaOtpRequestSchema,
mfaSchema,
sessionRevokeSchema,
impersonationStartSchema,
passkeyRegistrationOptionsSchema,
passkeyRegistrationVerifySchema,
passkeyAuthenticationOptionsSchema,
passkeyAuthenticationVerifySchema,
authenticatorSetupSchema,
authenticatorConfirmSchema,
authenticatorDisableSchema,
recoveryCodesSchema,
emptyActionSchema,
changePasswordSchema,
authSchemas,
authBrowserSchemaMap,
authBrowserSchemaDescriptors,
resolveAuthSchemas,
type AuthSchemaSet,
type AuthSchemaOverrides,
} from "./validation.ts";