UNPKG

@frank-auth/react

Version:

Flexible and customizable React UI components for Frank Authentication

4 lines (3 loc) 538 B
'use client'; "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=n=>{const s=[];return n.signIn&&s.push("password"),n.oauth&&s.push("oauth"),n.magicLink&&s.push("magic-link"),n.passkeys&&s.push("passkey"),n.sso&&s.push("sso"),{methods:s,showSignUpLink:n.signUp,showForgotPasswordLink:n.passwordReset}},o={email:n=>/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(n),password:n=>n.length>=8,organizationId:n=>n.length>0};exports.getDefaultSignInConfig=i;exports.signInValidation=o; //# sourceMappingURL=index.cjs.map