fix: auth callback

This commit is contained in:
Steven
2024-08-13 08:58:53 +08:00
parent db09ac2c5c
commit d4e575774c
2 changed files with 2 additions and 3 deletions

View File

@@ -62,7 +62,7 @@ const SignIn: React.FC = () => {
};
const handleSignInWithIdentityProvider = async (identityProvider: IdentityProvider) => {
const stateQueryParameter = `auth.signin.${identityProvider.title}-${identityProvider.id}`;
const stateQueryParameter = identityProvider.id;
if (identityProvider.type === IdentityProvider_Type.OAUTH2) {
const redirectUri = absolutifyLink("/auth/callback");
const oauth2Config = identityProvider.config?.oauth2;