{"repo":"ksjitendra18/astro-js-auth-oauth-passwordless-credentials","free":true,"listed":false,"github":"https://github.com/ksjitendra18/astro-js-auth-oauth-passwordless-credentials","clone":"git clone https://github.com/ksjitendra18/astro-js-auth-oauth-passwordless-credentials.git","description":"Github Google Oauth, Email Password, Magic Link Session Based Authentication for Astro using Drizzle ORM","language":"TypeScript","stars":26,"topics":["astrojs","drizzle","authentication","drizzle-orm","github-oauth","google-oauth2"],"license":"MIT","category":"auth-billing-email","readme_excerpt":"Note: Main and other branches are not in sync with the blog post. I will be updating the branches and blog posts with the latest changes. Please consider main branch as the latest version. Astro Authentication Guide: Google Github OAuth Guide, Email Password This repo is for the series of blog post covering Authentication in Astro. Main branch contains the latest updated code. If you're following the blog post, please use the specific branch for the post. Security If you find any security vulnerability, please contact me at jitendra@everythingcs.dev 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 - Argon2 for password hashing 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 Arctic , Oslo and also Better Auth. Getting Started To get started, clone the repo and run the following commands: Now copy the .env.example file to .env and fill in the values. Please refer to blog post for github and google oauth setup. You will need Turso DB and Redis for it. You can use sqlite or choose other database but then you will have to make changes in the schema. For Redis, I am using Upstash Redis. For emails you can use any email service which provides HTTP API.I am using Resend for sending emails. If you provid","default_branch":null,"files":null,"tree":[],"storefront":"/r/ksjitendra18","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ksjitendra18/astro-js-auth-oauth-passwordless-credentials/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}