📈 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
process-google-token -> process-sso-token
Blue Mouse602f643f4966
diff --git a/src/api/index.ts b/src/api/index.tsindex d72fd2d60..11f5a5479 100644--- a/src/api/index.ts+++ b/src/api/index.ts@@ -855,9 +855,9 @@ export const unlinkGoogle = () =>: error.response.data.message})-export const processGoogleToken = (token: string, hash: string) =>+export const processSSOToken = (token: string, hash: string) =>api- .post('v1/auth/google/process-token', { token, hash })+ .post('v1/auth/sso/process-token', { token, hash }).then((response): unknown => response.data).catch((error) => {debug('%s', error)diff --git a/src/pages/Auth/Socialised/index.tsx b/src/pages/Auth/Socialised/index.tsxindex c0a646cb0..732d91c52 100644--- a/src/pages/Auth/Socialised/index.tsx+++ b/src/pages/Auth/Socialised/index.tsx@@ -6,7 +6,7 @@ import { useTranslation } from 'react-i18next'import { CheckCircleIcon, XCircleIcon } from '@heroicons/react/24/solid'import _replace from 'lodash/replace'-import { processGoogleToken } from 'api'+import { processSSOToken } from 'api'import Title from 'components/Title'import Loader from 'ui/Loader'import routes from 'routes'@@ -37,7 +37,7 @@ const Socialised = (): JSX.Element => {}try {- await processGoogleToken(token, hash)+ await processSSOToken(token, hash)} catch (reason) {setIsError(true)console.error(`[ERROR] Error while processing Google code: ${reason}`)