Skip to content

Commit 1ea550d

Browse files
chore: Prettier
1 parent ed5563d commit 1ea550d

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

src/authenticationManager.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,19 @@ import { jwtDecode, type JwtPayload } from 'jwt-decode';
1111
/**
1212
* Valid audience values for the Athena SDK.
1313
*/
14-
export type AthenaAudience = 'crisp-athena-live' | 'crisp-athena-dev' | 'crisp-athena-qa';
14+
export type AthenaAudience =
15+
| 'crisp-athena-live'
16+
| 'crisp-athena-dev'
17+
| 'crisp-athena-qa';
1518

1619
/**
1720
* List of valid audience values.
1821
*/
19-
export const VALID_AUDIENCES: readonly AthenaAudience[] = ['crisp-athena-live', 'crisp-athena-dev', 'crisp-athena-qa'] as const;
22+
export const VALID_AUDIENCES: readonly AthenaAudience[] = [
23+
'crisp-athena-live',
24+
'crisp-athena-dev',
25+
'crisp-athena-qa',
26+
] as const;
2027

2128
/**
2229
* Type guard to validate and parse an audience string.
@@ -25,7 +32,10 @@ export const VALID_AUDIENCES: readonly AthenaAudience[] = ['crisp-athena-live',
2532
* @param defaultValue The default audience if value is invalid (default: 'crisp-athena-live')
2633
* @returns A valid AthenaAudience value
2734
*/
28-
export function parseAudience(value: string | undefined, defaultValue: AthenaAudience = 'crisp-athena-live'): AthenaAudience {
35+
export function parseAudience(
36+
value: string | undefined,
37+
defaultValue: AthenaAudience = 'crisp-athena-live',
38+
): AthenaAudience {
2939
if (value && VALID_AUDIENCES.includes(value as AthenaAudience)) {
3040
return value as AthenaAudience;
3141
}

0 commit comments

Comments
 (0)