add support for Bearer auth

This commit is contained in:
Yiran Lu 2025-04-15 16:09:55 +02:00
parent 3a3f5be7be
commit 22f1feece3

View File

@ -48,6 +48,11 @@ function parseAuthToken(auth: string | undefined) {
auth = basicAuthChunks[1];
}
if (auth.startsWith("Bearer ")) {
// allow also bearer auth format
auth = auth.substring(7);
}
const chunks = auth.split("_");
if (chunks.length === 1) {