Skip to content

Commit

Permalink
Merge branch 'fix/redirect-rn' into test/react-native-oidc-signout
Browse files Browse the repository at this point in the history
  • Loading branch information
Samaritan1011001 committed Aug 21, 2024
2 parents 80585fa + 1238421 commit a4d8850
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions packages/auth/src/providers/cognito/apis/signOut.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function signOut(input?: SignOutInput): Promise<void> {
if (hasOAuthConfig) {
const oAuthStore = new DefaultOAuthStore(defaultStorage);
oAuthStore.setAuthConfig(cognitoConfig);
const { type, error } =
const { type } =
(await handleOAuthSignOut(
cognitoConfig,
oAuthStore,
Expand All @@ -73,7 +73,7 @@ export async function signOut(input?: SignOutInput): Promise<void> {
if (type === 'error') {
throw new AuthError({
name: OAUTH_SIGNOUT_EXCEPTION,
message: `An error occurred when attempting to log out from OAuth provider. ${error}`,
message: `An error occurred when attempting to log out from OAuth provider.`,
});
}
} else {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import { oAuthSignOutRedirect } from './oAuthSignOutRedirect';
export const handleOAuthSignOut = async (
cognitoConfig: CognitoUserPoolConfig,
store: DefaultOAuthStore,
// To match the web counter part of the function.
// No-op in here as it's only used in the non-native implementation
tokenOrchestrator: TokenOrchestrator,
preferredSignOutUrl?: string,
): Promise<void | OpenAuthSessionResult> => {
Expand Down

0 comments on commit a4d8850

Please sign in to comment.