diff --git a/packages/auth/src/providers/cognito/utils/types.ts b/packages/auth/src/providers/cognito/utils/types.ts index 71a1f0c5280..82241eeb9c2 100644 --- a/packages/auth/src/providers/cognito/utils/types.ts +++ b/packages/auth/src/providers/cognito/utils/types.ts @@ -128,7 +128,7 @@ export interface OAuthStore { clearOAuthData(): Promise; } function isAuthenticated(tokens?: CognitoAuthTokens | null) { - return tokens?.accessToken && tokens?.idToken; + return tokens?.accessToken || tokens?.idToken; } function isAuthenticatedWithRefreshToken(tokens?: CognitoAuthTokens | null) {