Skip to content

Commit

Permalink
fix(auth): safety descent into session.token object
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheeg committed Aug 11, 2024
1 parent 39f24f5 commit 14444f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/middlewares.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ export default {
};
}

if (stoken.google) {
if (stoken?.google) {
if (!user.hasGoogleToken()) {
// assumes token applies to use as-is
user.setGoogleToken(stoken.google);
Expand Down

0 comments on commit 14444f7

Please sign in to comment.