mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-07 19:55:46 -05:00
next auth settings
This commit is contained in:
4
.env
4
.env
@@ -1,3 +1,5 @@
|
||||
# used for log-in
|
||||
DISCORD_CLIENT_ID=
|
||||
DISCORD_CLIENT_SECRET=
|
||||
DISCORD_CLIENT_SECRET=
|
||||
JWT_SECRET=
|
||||
NEXTAUTH_URL=
|
||||
2
TODO.md
2
TODO.md
@@ -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
|
||||
|
||||
|
||||
@@ -14,6 +14,9 @@ const options: InitOptions = {
|
||||
scope: "identify",
|
||||
}),
|
||||
],
|
||||
jwt: {
|
||||
secret: process.env.JWT_SECRET!,
|
||||
},
|
||||
callbacks: {
|
||||
session: async (_, user) => {
|
||||
return Promise.resolve(user);
|
||||
|
||||
Reference in New Issue
Block a user