api/.env.example
Set these on your host before deploying. Each platform has an “Environment Variables” section in the deploy flow.
DISCORD_CLIENT_ID
DISCORD_SECRET_ID
secret
REFRESH_TOKEN_SECRET
secret
ACCESS_TOKEN_SECRET
secret
FRONTEND_URL
brew install flyctl && fly launch --from https://github.com/benawad/how-to-roll-your-own-auth
curl -L https://fly.io/install.sh | sh && fly launch --from https://github.com/benawad/how-to-roll-your-own-auth
iwr https://fly.io/install.ps1 -useb | iex; fly launch --from https://github.com/benawad/how-to-roll-your-own-auth