Skip to content

Commit

Permalink
Version 28.06.01: Happy Pride Month!
Browse files Browse the repository at this point in the history
  • Loading branch information
DonaldLouch committed Jun 1, 2023
1 parent dc108c5 commit 534663d
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions pages/api/auth/[...nextauth].ts
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ export default NextAuth({
secret: process.env.SECRET,

session: {
strategy: "jwt",
strategy: "database",
},

// https://next-auth.js.org/configuration/options#jwt
Expand All @@ -175,15 +175,15 @@ export default NextAuth({

// https://next-auth.js.org/configuration/callbacks
callbacks: {
async jwt({ token, account }: any) {
console.log(token, account);
if (account) {
return {
...token,
accessToken: account.access_token,
};
}
},
// async jwt({ token, account }: any) {
// console.log(token, account);
// if (account) {
// return {
// ...token,
// accessToken: account.access_token,
// };
// }
// },
async session({ session, user, sessionToken }: any) {
session.user.userLevel = user.userLevel as number;
// session.user.username = user.username as string;
Expand Down

1 comment on commit 534663d

@vercel
Copy link

@vercel vercel bot commented on 534663d Jun 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

donaldlouch – ./

donaldlouch-git-main-donaldlouch.vercel.app
donaldlouch-donaldlouch.vercel.app
donaldlouch.ca

Please sign in to comment.