Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

GitHub OAuth example in SolidStart

Uses SQLite (main.db) database.

pnpm i
pnpm dev

Setup

Create a GitHub OAuth app with the callback set to http://localhost:3000/login/github/callback and create an .env file.

GITHUB_CLIENT_ID=""
GITHUB_CLIENT_SECRET=""

Polyfill

If you're using Node 16 or 18, uncomment the code in lib/auth.ts. This is not required in Node 20, Bun, and Cloudflare Workers.

// import { webcrypto } from "crypto";
// globalThis.crypto = webcrypto as Crypto;