next auth settings

This commit is contained in:
Kalle (Sendou)
2020-11-26 15:09:29 +02:00
parent f59c569de4
commit 4202ed3d7a
3 changed files with 8 additions and 1 deletions

4
.env
View File

@@ -1,3 +1,5 @@
# used for log-in
DISCORD_CLIENT_ID=
DISCORD_CLIENT_SECRET=
DISCORD_CLIENT_SECRET=
JWT_SECRET=
NEXTAUTH_URL=

View File

@@ -8,6 +8,8 @@
- [ ] Localization
- [ ] Script to parse old translations into new format
- [ ] Can change translations on the site
- [ ] Set favicon
- [ ] Social media preview / SEO stuff
### Before being able to shut down old site and bot

View File

@@ -14,6 +14,9 @@ const options: InitOptions = {
scope: "identify",
}),
],
jwt: {
secret: process.env.JWT_SECRET!,
},
callbacks: {
session: async (_, user) => {
return Promise.resolve(user);