Fixed sign in with an invite token when user is signed out

This commit is contained in:
giancarlo
2024-06-07 01:23:16 +07:00
parent 6ec939469b
commit 2e7e289495
7 changed files with 7639 additions and 9323 deletions

View File

@@ -14,6 +14,7 @@ import { AuthProviderButton } from './auth-provider-button';
export function OauthProviders(props: {
inviteToken?: string;
shouldCreateUser: boolean;
enabledProviders: Provider[];
paths: {
@@ -85,6 +86,7 @@ export function OauthProviders(props: {
const credentials = {
provider,
options: {
shouldCreateUser: props.shouldCreateUser,
redirectTo,
...scopesOpts,
},