MingruiZhang commited on
Commit
1d92adf
1 Parent(s): b841f1a

fix google 401

Browse files
Files changed (1) hide show
  1. auth.ts +1 -2
auth.ts CHANGED
@@ -25,8 +25,7 @@ export const {
25
  callbacks: {
26
  jwt({ token, profile }) {
27
  if (profile) {
28
- // console.log('[Ming] ~ jwt ~ profile:', profile);
29
- token.id = profile.id;
30
  token.image = profile.avatar_url || profile.picture;
31
  }
32
  return token;
 
25
  callbacks: {
26
  jwt({ token, profile }) {
27
  if (profile) {
28
+ token.id = profile.id || profile.sub;
 
29
  token.image = profile.avatar_url || profile.picture;
30
  }
31
  return token;