Skip to content

chottolabs/auth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

side tangents


simple-oauth

minimal example for google oauth 2.0

  • implements PKCE
  • implements JWT (defaults to HS256, ensure 32 * 8 = 256)
GOOGLE_REDIRECT_URI=http://localhost:4321/auth/google/callback
GOOGLE_CLIENT_ID=***.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=GOCSPX-***
JWT_SECRET=$(openssl rand -base64 32) go run main.go

related:

About

secure auth implementations?

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages