golang-auth0-example

module
v0.0.0-...-fc1c886 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 20, 2023 License: MIT

README

golang-auth0-example

An example backend with GoLang that uses auth0 for authentication

server setup

  1. Ensure you have air and task (https://youtu.be/Q7uh85_i0-M)
  2. Create an auth0 account (https://auth0.com/)
  3. Create a new api (https://auth0.com/docs/quickstart/backend/golang/01-authorization#create-a-middleware-to-validate-access-tokens)
  4. Setup app.env file with your credentials, follow app.env.example
  5. Run task dev

client setup

  1. Run cd web, npm install
  2. Setup a new client application in auth0 (https://auth0.com/docs/quickstart/spa/react/01-login#create-a-new-application)
  3. Fill in the web/.env file with your credentials, follow web/.env.example
  4. Run npm run dev

Directories

Path Synopsis
cmd
internal
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL