Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/user/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"typecheck": "tsc --noEmit -p tsconfig.vitest.json --composite false"
},
"dependencies": {
"supertokens-web-js": "0.6.0",
"supertokens-web-js": "0.7.2",
"zod": "3.22.3"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions packages/user/src/components/Login/SocialLogins.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useTranslation } from "@dzangolab/react-i18n";

import { useConfig } from "@/hooks";

import GoogleLogin from "../GoogleLogin";

import { useConfig } from "@/hooks";

export const SUPPORTED_SOCIAL_LOGIN_PROVIDERS = [
"google" as const,
// "facebook" as const,
Expand Down
4 changes: 2 additions & 2 deletions packages/user/src/supertokens/google-login.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import { getAuthorisationURLWithQueryParamsAndSetState } from "supertokens-web-j
const googleLogin = async (redirectUrl: string) => {
try {
const authUrl = await getAuthorisationURLWithQueryParamsAndSetState({
authorisationURL: redirectUrl,
providerId: "google",
frontendRedirectURI: redirectUrl,
thirdPartyId: "google",
});

window.location.assign(authUrl);
Expand Down
2 changes: 2 additions & 0 deletions packages/user/src/supertokens/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { AppConfig } from "@dzangolab/react-config";
import SuperTokens from "supertokens-web-js";
import EmailVerification from "supertokens-web-js/recipe/emailverification";
import Multitenancy from "supertokens-web-js/recipe/multitenancy";
import Session from "supertokens-web-js/recipe/session";
import ThirdPartyEmailPassword from "supertokens-web-js/recipe/thirdpartyemailpassword";

Expand All @@ -9,6 +10,7 @@ import { SUPERTOKENS_API_BASE_PATH_DEFAULT } from "@/constants";
const superTokens = (config: AppConfig) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const recipeLists: Array<any> = [
Multitenancy.init(),
Session.init(),
ThirdPartyEmailPassword.init(),
];
Expand Down
8 changes: 4 additions & 4 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.