mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-10-08 19:16:37 +08:00
auth log2
This commit is contained in:
parent
82ed253111
commit
c62d317504
@ -63,6 +63,11 @@ export const authOptions: NextAuthOptions = {
|
||||
console.log('Session callback');
|
||||
console.log('Session:', session);
|
||||
console.log('Token:', token);
|
||||
console.log('User:', user);
|
||||
console.log('Account:', account);
|
||||
console.log('Profile:', profile);
|
||||
|
||||
const userId = token.sub ?? 'default-sub-value';
|
||||
|
||||
// Extend session object here
|
||||
session.user = {
|
||||
|
Loading…
Reference in New Issue
Block a user