Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

ksjitendra18/astro-js-auth-oauth-passwordless-credentials

Open more actions menu
 
 

Repository files navigation

Astro Authentication Guide: Google Github OAuth Guide, Email Password

This repo is for the series of blog post covering Authentication in Astro.

Technolgies Used

  • Turso DB
  • Drizzle ORM
  • Redis for storing verification codes and rate limiting
  • Resend for sending emails
  • Solid.js
  • Zod
  • Database session strategy for auth persistence
  • Bcrypt for password encryption

I am not using any external auth library for this guide. At the moment of writing, Auth.js doesn't support Astro. In a separate blog post I will do all these authentication strategy through Lucia Auth.

Here are the strategies with their starter code, finished code and also the related blog post.

1. Oauth (Google and Github)

2. Email Password Credential Based

3. Passwordless (Magic Link) Auth

4. Integrating Two-Factor Auth

Integration of TOTP based verification along with recovery codes.

About

Github Google Oauth, Email Password, Magic Link Session Based Authentication for Astro using Drizzle ORM

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
Morty Proxy This is a proxified and sanitized view of the page, visit original site.