Adding a basic version of next-auth-js using Discord and ensuring an authenticated user can fetch prompts from the real backend using an API middlelayer

This commit is contained in:
Keith Stevens
2022-12-14 11:49:42 +09:00
parent 38349b6661
commit 1f5e563b1d
7 changed files with 463 additions and 26 deletions
+8
View File
@@ -0,0 +1,8 @@
FASTAPI_URL=http://xamla.com:8000
FASTAPI_KEY=magic_key
DISCORD_CLIENT_ID=your_discord_bot_client_id
DISCORD_CLIENT_SECRET=your_discord_bot_client_secret
# Run "openssl rand -base64 32" to get this.
NEXTAUTH_SECRET=openssl_result