UNPKG

envilder

Version:

A CLI and GitHub Action that securely centralizes your environment variables from AWS SSM or Azure Key Vault as a single source of truth

12 lines 403 B
const EXPIRED_CREDENTIAL_ERROR_NAMES = new Set([ 'ExpiredToken', 'ExpiredTokenException', ]); export function isExpiredCredentialsError(error) { if (typeof error !== 'object' || error === null || !('name' in error)) { return false; } const name = String(error.name); return EXPIRED_CREDENTIAL_ERROR_NAMES.has(name); } //# sourceMappingURL=isExpiredCredentialsError.js.map