Skip to content

Commit e6bf522

Browse files
committed
invert option value
1 parent 1f12bb0 commit e6bf522

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/auth/src/providers/cognito/apis/signInWithRedirect.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export async function signInWithRedirect(
4444
assertTokenProviderConfig(authConfig);
4545
assertOAuthConfig(authConfig);
4646
store.setAuthConfig(authConfig);
47-
if (input?.options?.assertUserNotAuthenticated !== false) {
47+
if (input?.options?.skipAssertUserNotAuthenticated !== true) {
4848
await assertUserNotAuthenticated();
4949
}
5050

packages/auth/src/types/inputs.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ export type AuthSignInWithRedirectInput = {
6666
*/
6767
preferPrivateSession?: boolean;
6868
/**
69-
* Setting this to false will allow you to sign in even when a user is authenticated.
69+
* Setting this to true will allow you to sign in even when a user is authenticated.
7070
*/
71-
assertUserNotAuthenticated?: boolean;
71+
skipAssertUserNotAuthenticated?: boolean;
7272
};
7373
};
7474

0 commit comments

Comments
 (0)