diff --git a/modules/middlewares.js b/modules/middlewares.js index 564bbcc4..5e730f51 100644 --- a/modules/middlewares.js +++ b/modules/middlewares.js @@ -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);