UNPKG

better-auth-harmony

Version:

Validation and normalization for better-auth

1 lines 1.43 kB
var t=["/sign-up/email","/email-otp/verify-email","/sign-in/email-otp","/sign-in/magic-link","/sign-in/email","/forget-password/email-otp","/email-otp/request-password-reset","/email-otp/reset-password","/email-otp/create-verification-otp","/email-otp/get-verification-otp","/email-otp/send-verification-otp","/forget-password","/request-password-reset","/send-verification-email","/change-email"],i=new Set(t),o=new Set(t.slice(1,12)),a=({path:e})=>typeof e=="string"&&i.has(e),r=({path:e})=>typeof e=="string"&&o.has(e),n=({path:e})=>e==="/sign-up/email",s=({path:e})=>e==="/sign-in/email",p=({path:e})=>e==="/request-password-reset"||e==="/forget-password",c=({path:e})=>e==="/send-verification-email",l=({path:e})=>e==="/change-email",m=({path:e})=>e==="/email-otp/verify-email",g=({path:e})=>e==="/email-otp/request-password-reset"||e==="/forget-password/email-otp",f=({path:e})=>e==="/email-otp/reset-password",d=({path:e})=>e==="/email-otp/create-verification-otp",h=({path:e})=>e==="/email-otp/get-verification-otp",x=({path:e})=>e==="/email-otp/send-verification-otp",M=({path:e})=>e==="/sign-in/magic-link";export{a as allEmail,r as allEmailSignIn,l as changeEmail,p as emailForget,d as emailOtpCreateVerification,g as emailOtpForget,h as emailOtpGetVerification,f as emailOtpReset,x as emailOtpSendVerification,m as emailOtpVerify,c as emailSendVerification,s as emailSignIn,n as emailSignUp,M as magicLinkSignIn};