Added Connection Component, Store, JWT logic
This commit is contained in:
@@ -63,7 +63,7 @@ export const options: AuthOptions = {
|
||||
|
||||
adapter: PrismaAdapter(prisma as any),
|
||||
callbacks: {
|
||||
jwt: async ({ token, user }) => {
|
||||
jwt: async ({ token, user, ...rest }) => {
|
||||
if (user && "firstname" in user) {
|
||||
return {
|
||||
...token,
|
||||
|
||||
Reference in New Issue
Block a user