Documentation
Source Code
Web Pages

Auth Code

Auth Rush provides a set of web pages that you can use to build your application.

Pages

These are the pages that are provided by Auth Rush.

PageDescription
/(auth)/errorPage related to error handling
/(auth)/loginLogin page for users
/(auth)/new-passwordPage to set a new password
/(auth)/registerRegistration page for new users
/(auth)/resetPage to reset a password
/(auth)/verify-emailPage to verify a user's email address

Page Components

Each page is rendered using a React component that is exported as the default export. Here's the code for each of the page components:

/(auth)/error

import { ErrorCard } from "@/components/auth/ErrorCard";
import React from "react";
 
const Page = () => {
  return <ErrorCard />;
};
 
export default Page;

/(auth)/login

import { LoginForm } from "@/components/auth/LoginForm";
import React from "react";
 
const Page = () => {
  return <LoginForm />;
};
 
export default Page;

/(auth)/new-password

import { NewPasswordForm } from "@/components/auth/NewPasswordForm";
import React from "react";
 
const Page = () => {
  return <NewPasswordForm />;
};
 
export default Page;

/(auth)/reset

import { ResetForm } from "@/components/auth/ResetForm";
import React from "react";
 
const Page = () => {
  return <ResetForm />;
};
 
export default Page;

/(auth)/verify-email

import VerifyEmailForm from "@/components/auth/VerifyEmailForm";
 
const Page = () => {
  return <VerifyEmailForm />;
};
 
export default Page;