This repository has been created with the intent to provide a simple example of how to use Remix Auth TOTP. This example uses Prisma ORM and SQLite to store and handle the authentication flow.
- Clone the repository and install its dependencies:
npm install
- Run Prisma migrations:
npx prisma migrate dev --name init
- Get required
.env
variables:
This example uses Resend to send emails. You can create a free account and get your API key on here.
Note Remember to replace the current
.env.example
file with your own.env
file.
- Run the server:
npm run dev
And you're ready to go! 🎉
If you want to share your own example, feel free to open a PR into the main repository.