Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 22f1fee

Browse files
committed
add support for Bearer auth
1 parent 3a3f5be commit 22f1fee

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/services/etapi_tokens.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ function parseAuthToken(auth: string | undefined) {
4848
auth = basicAuthChunks[1];
4949
}
5050

51+
if (auth.startsWith("Bearer ")) {
52+
// allow also bearer auth format
53+
auth = auth.substring(7);
54+
}
55+
5156
const chunks = auth.split("_");
5257

5358
if (chunks.length === 1) {

0 commit comments

Comments
 (0)