📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!
TypeScript chartsclickhousedockergdprgoogle-analyticsmetricsmonitoringmysqlnestjsprivacyredisself-hostedselfhostedstatisticstailwindcssweb-analyticswebanalyticswebsite
(fix) Invalid Google token (#179)
Yevhenii Kulisidi7f97bbc44716
diff --git a/apps/production/src/auth/auth.service.ts b/apps/production/src/auth/auth.service.tsindex daf465b33..4c440895b 100644--- a/apps/production/src/auth/auth.service.ts+++ b/apps/production/src/auth/auth.service.ts@@ -604,6 +604,11 @@ export class AuthService {return await this.handleExistingUserGoogle(user, headers, ip)} catch (error) {console.error(`[ERROR][AuthService -> authenticateGoogle]: ${error}`)++ if (error === 'invalid_token') {+ throw new BadRequestException('Google token is expired')+ }+throw new InternalServerErrorException('Something went wrong while authenticating user with Google',)