Skip to content

Commit 5aa3596

Browse files
committed
🐛 Fix default token type at setAuthHeader
1 parent 382165d commit 5aa3596

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/@ackee/antonio-utils/src/setAuthHeader.ts

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
enum TokenType {
2-
BEARER = 'Bearer',
3-
}
1+
const TokenType = {
2+
BEARER: 'Bearer',
3+
};
44

55
export default function setAuthHeader(
66
headers: Headers,
77
tokenValue?: string,
8-
tokenType: TokenType | string = TokenType.BEARER,
8+
tokenType: string = TokenType.BEARER,
99
): void {
1010
if (tokenValue) {
1111
headers.set('Authorization', `${tokenType} ${tokenValue}`);

0 commit comments

Comments
 (0)