< Summary - Envilder CLI

Information
Class: src/envilder/core/infrastructure/aws/isSsoSessionExpiredError.ts
Assembly: Default
File(s): src/envilder/core/infrastructure/aws/isSsoSessionExpiredError.ts
Tag: 427_29134414720
Line coverage
100%
Covered lines: 5
Uncovered lines: 0
Coverable lines: 5
Total lines: 9
Line coverage: 100%
Branch coverage
100%
Covered branches: 5
Total branches: 5
Branch coverage: 100%
Method coverage

Feature is only available for sponsors

Upgrade to PRO version

File(s)

src/envilder/core/infrastructure/aws/isSsoSessionExpiredError.ts

#LineLine coverage
 101const SSO_SESSION_EXPIRED_ERROR_NAMES = new Set(['TokenProviderError']);
 2
 3export function isSsoSessionExpiredError(error: unknown): boolean {
 114  if (typeof error !== 'object' || error === null || !('name' in error)) {
 25    return false;
 6  }
 97  const name = String((error as { name?: unknown }).name);
 98  return SSO_SESSION_EXPIRED_ERROR_NAMES.has(name);
 9}

Methods/Properties

isSsoSessionExpiredError