Spaces:
Running
Running
MingruiZhang
commited on
Commit
•
1d92adf
1
Parent(s):
b841f1a
fix google 401
Browse files
auth.ts
CHANGED
@@ -25,8 +25,7 @@ export const {
|
|
25 |
callbacks: {
|
26 |
jwt({ token, profile }) {
|
27 |
if (profile) {
|
28 |
-
|
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;
|