An open API service indexing awesome lists of open source software.

https://github.com/mingderwang/lucia-astro-github-oauth

GitHub OAuth example with Lucia and Astro (release to vercel fail because of cannot run sqlite)
https://github.com/mingderwang/lucia-astro-github-oauth

astro example lucia lucia-auth

Last synced: 7 months ago
JSON representation

GitHub OAuth example with Lucia and Astro (release to vercel fail because of cannot run sqlite)

Awesome Lists containing this project

README

          

# GitHub OAuth example with Lucia and Astro

```bash
# install dependencies
pnpm i

# run dev server
pnpm dev
```

## Setup GitHub OAuth

[Create a new GitHub OAuth app](https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/creating-an-oauth-app). The redirect uri should be set to `localhost:5173/login/github/callback`. Copy and paste the client id and secret into `.env`.

```bash
GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""
```

## User schema

| id | type | unique |
| ---------- | -------- | :----: |
| `id` | `string` | |
| `username` | `string` | |