Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/codersaadi/next-auth5-shadcn
/ functions
Functions
96 in github.com/codersaadi/next-auth5-shadcn
⨍
Functions
96
◇
Types & classes
25
↓ 46 callers
Function
cn
(...inputs: ClassValue[])
src/lib/utils.ts:4
↓ 5 callers
Function
dispatch
(action: Action)
src/hooks/use-toast.ts:136
↓ 5 callers
Function
useFormSubmit
( props : FormSubmitProps<T> )
src/hooks/useFormSubmit.tsx:31
↓ 4 callers
Function
getIconProps
(size? : number, className? : string)
src/modules/auth/icons.tsx:2
↓ 4 callers
Method
getUserByEmail
(email: string)
src/modules/auth/data/user.ts:4
↓ 4 callers
Function
reCaptchaSiteVerify
({ token, action, tokenExpiryMs = 120000, //ms }: CaptchaActionOptions)
src/modules/auth/lib/recaptcha.ts:13
↓ 4 callers
Function
useFormField
()
src/components/ui/form.tsx:44
↓ 3 callers
Function
signIn
({ user, account })
src/modules/auth/auth.ts:23
↓ 2 callers
Function
addToRemoveQueue
(toastId: string)
src/hooks/use-toast.ts:61
↓ 2 callers
Function
createVerificationToken
(email: string)
src/modules/auth/data/verification-token.ts:33
↓ 2 callers
Method
getTemplate
(fileName: `${TemplateFileName}.html`, replacements: { [key: string]: string })
src/modules/auth/services/template-service.ts:10
↓ 2 callers
Method
getUserById
(id: string)
src/modules/auth/data/user.ts:15
↓ 2 callers
Function
hashMyPassword
(password: string)
src/modules/auth/lib/common.ts:10
↓ 2 callers
Function
isCaptchaInvalid
()
src/hooks/useFormSubmit.tsx:75
↓ 2 callers
Function
onSubmit
( action: (data: z.infer<T>, captchaOptions: CaptchaActionOptions) => Promise<MessageResponse> )
src/hooks/useFormSubmit.tsx:90
↓ 2 callers
Function
refreshCaptcha
()
src/hooks/useFormSubmit.tsx:50
↓ 2 callers
Function
sendEmailVerification
(email: string, token: string)
src/modules/auth/lib/common.ts:4
↓ 1 callers
Method
createResetPasswordToken
(email: string)
src/modules/auth/data/resetpassword-token.ts:31
↓ 1 callers
Function
dismiss
()
src/hooks/use-toast.ts:153
↓ 1 callers
Function
emailVerifyAction
( token?: string, )
src/modules/auth/lib/emailVerifyAction.ts:7
↓ 1 callers
Function
genId
()
src/hooks/use-toast.ts:30
↓ 1 callers
Function
generateHTML
(params: { url: string; host: string; theme: EmailTheme })
src/modules/auth/sendRequest.ts:51
↓ 1 callers
Function
generateText
({ url, host }: { url: string; host: string })
src/modules/auth/sendRequest.ts:102
↓ 1 callers
Method
getResetPasswordToken
(email: string)
src/modules/auth/data/resetpassword-token.ts:5
↓ 1 callers
Method
getResetPasswordTokenByToken
(token: string)
src/modules/auth/data/resetpassword-token.ts:18
↓ 1 callers
Method
getTransport
()
src/modules/auth/services/mail.sender.ts:17
↓ 1 callers
Function
getVerificationToken
(email: string)
src/modules/auth/data/verification-token.ts:5
↓ 1 callers
Function
getVerificationTokenByToken
(token: string)
src/modules/auth/data/verification-token.ts:19
↓ 1 callers
Function
handleSignIn
(provider: availableProviders)
src/modules/auth/components/AuthProvidersCTA.tsx:18
↓ 1 callers
Function
handleSignInRedirectError
( error: RedirectError<string>, data: MagicSignInType )
src/modules/auth/lib/signin_magic-action.ts:42
↓ 1 callers
Function
reducer
(state: State, action: Action)
src/hooks/use-toast.ts:77
↓ 1 callers
Function
resetPasswordAction
(token: string, data : ResetPasswordSchemaType)
src/modules/auth/lib/forgot-password.ts:71
↓ 1 callers
Function
sendResetPasswordEmail
(email: string, token : string)
src/modules/auth/lib/common.ts:15
↓ 1 callers
Method
sendResetPasswordEmail
(email: string, verificationLink: string)
src/modules/auth/services/mail.sender.ts:21
↓ 1 callers
Method
sendVerificationEmail
(email: string, verificationLink: string)
src/modules/auth/services/mail.sender.ts:36
↓ 1 callers
Function
toast
({ ...props }: Toast)
src/hooks/use-toast.ts:145
↓ 1 callers
Function
useAuthProviders
()
src/modules/auth/useAuthProviders.tsx:5
↓ 1 callers
Function
useToast
()
src/hooks/use-toast.ts:174
↓ 1 callers
Method
verifyUserEmail
(id : string)
src/modules/auth/data/user.ts:25
Function
AppLayout
({ children, auth }: { children: React.ReactNode; auth: React.ReactNode; })
src/app/home/layout.tsx:3
Function
AuthErrorPage
({searchParams} :{ searchParams : any })
src/app/auth-error/page.tsx:50
Function
AuthLayout
({ children }: { children: React.ReactNode })
src/app/auth/layout.tsx:6
Function
AuthModalLayout
({children} :{ children: React.ReactNode, })
src/app/home/@auth/(..)auth/layout.tsx:6
Function
AuthProvidersCTA
({ withDescription = false, }: { withDescription?: boolean; })
src/modules/auth/components/AuthProvidersCTA.tsx:11
Function
CaptchaClientProvider
({ children }: { children: React.ReactNode })
src/modules/auth/components/CaptchaProvider.tsx:6
Function
Default
()
src/app/home/@auth/default.tsx:2
Function
DialogFooter
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:70
Function
DialogHeader
({ className, ...props }: React.HTMLAttributes<HTMLDivElement>)
src/components/ui/dialog.tsx:56
Function
DropdownMenuShortcut
({ className, ...props }: React.HTMLAttributes<HTMLSpanElement>)
src/components/ui/dropdown-menu.tsx:176
Function
EmailVerifyForm
({ token }: { token?: string })
src/modules/auth/components/EmailVerifyForm.tsx:8
Function
FBIcon
({size} : {size : number})
src/modules/auth/icons.tsx:48
Function
ForgotPasswordForm
()
src/modules/auth/components/ForgotPassword.tsx:13
Function
FormFeedback
({ message, type }: FormFeedbackProps)
src/modules/auth/components/FormFeedback.tsx:6
Function
FormField
({ ...props }: ControllerProps<TFieldValues, TName>)
src/components/ui/form.tsx:31
Function
GithubIcon
({ size } :{ size? : number })
src/modules/auth/icons.tsx:21
Function
GoogleIcon
({ size } : { size? : number })
src/modules/auth/icons.tsx:10
Function
Home
()
src/app/home/page.tsx:5
Function
LoadingSpinner
({className} :{ className?: string })
src/components/Spinner.tsx:4
Function
MagicLinkSigninForm
()
src/modules/auth/components/MagicLinkSignin.tsx:16
Function
Modal
({ children } :{ children: React.ReactNode })
src/components/Modal.tsx:5
Function
NewPasswordForm
({ token }: { token?: string })
src/modules/auth/components/NewPasswordForm.tsx:13
Function
NextThemeProvider
({ children }: { children: React.ReactNode })
src/providers/ThemeProvider.tsx:4
Function
Provider
({ children }: { children: React.ReactNode })
src/providers/index.tsx:6
Function
RootLayout
({ children, }: { children: React.ReactNode; })
src/app/layout.tsx:13
Function
SignInComponent
({ searchParams }: { searchParams: Record<string, number | string | null> })
src/modules/auth/components/SignInForm.tsx:122
Function
SignInForm
()
src/modules/auth/components/SignInForm.tsx:18
Function
SignOutButton
()
src/modules/auth/components/SignOutButton.tsx:7
Function
SignOutPage
()
src/app/(protected-routes)/signout/page.tsx:3
Function
SignUpForm
({ searchParams })
src/modules/auth/components/SignupForm.tsx:19
Function
ThemeSwitch
()
src/components/ThemeSwitch.tsx:6
Function
Toaster
()
src/components/ui/toaster.tsx:13
Function
Toaster
({ ...props }: ToasterProps)
src/components/ui/sonner.tsx:8
Function
TwitterIcon
({ size } :{ size? : number })
src/modules/auth/icons.tsx:33
Function
VerifyRequest
({searchParams} :{ searchParams : Record<string , string | null |number> })
src/app/auth/verify-request/page.tsx:5
Function
authorize
(credentials)
src/modules/auth/auth.config.ts:17
Function
baseFetch
( url: string, options?: FetchOptions<TBody> )
src/lib/fetch.ts:14
Method
constructor
()
src/modules/auth/services/mail.sender.ts:7
Function
createFormError
(validate, failMessage)
src/lib/validate-utils.ts:6
Function
currentRole
()
src/modules/auth/lib/common.ts:25
Function
currentUser
()
src/modules/auth/lib/common.ts:21
Function
forgotPasswordAction
( data: ForgotPasswordSchemaType, captchaOptions : CaptchaActionOptions)
src/modules/auth/lib/forgot-password.ts:13
Function
handleOpenChange
()
src/components/Modal.tsx:11
Function
jwt
(jwt)
src/modules/auth/auth.ts:42
Function
onSignInTypeChange
()
src/modules/auth/components/SignInForm.tsx:127
Function
page
({searchParams} : EmailVerifyProps)
src/app/auth/email_verify/page.tsx:10
Function
page
({searchParams} : ResetPasswordProps)
src/app/auth/new-password/page.tsx:9
Function
page
()
src/app/(protected-routes)/dashboard/page.tsx:6
Function
sendVerificationRequest
(params: { identifier: string; url: string; expires: Date; provider: NodemailerConfig; token: string
src/modules/auth/sendRequest.ts:13
Function
session
({ session, user, token })
src/modules/auth/auth.ts:56
Function
setResponseMessage
(res: MessageResponse)
src/hooks/useFormSubmit.tsx:93
Function
signInAction
( data: LoginSchemaType, captchaOptions : CaptchaActionOptions )
src/modules/auth/lib/signin-action.ts:8
Function
signUpAction
( data: SignupSchemaType,captchaOptions : CaptchaActionOptions )
src/modules/auth/lib/signup-action.ts:10
Function
signinMagic
( data: MagicSignInType, captchaOptions : CaptchaActionOptions )
src/modules/auth/lib/signin_magic-action.ts:12
Function
update
(props: ToasterToast)
src/hooks/use-toast.ts:148
Function
useDebounce
(value: T, delay?: number)
src/hooks/useDebounce.tsx:4
Function
useQueryString
(searchParams: URLSearchParams)
src/hooks/useUpdateQueryParams.tsx:6