UNPKG

better-auth-harmony

Version:

Validation and normalization for better-auth

1 lines 1.5 kB
'use strict';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";exports.allEmail=a;exports.allEmailSignIn=r;exports.changeEmail=l;exports.emailForget=p;exports.emailOtpCreateVerification=d;exports.emailOtpForget=g;exports.emailOtpGetVerification=h;exports.emailOtpReset=f;exports.emailOtpSendVerification=x;exports.emailOtpVerify=m;exports.emailSendVerification=c;exports.emailSignIn=s;exports.emailSignUp=n;exports.magicLinkSignIn=M;