Merge pull request #1714 from yiranlus/develop

Support Bearer Authentication
This commit is contained in:
Elian Doran 2025-04-15 17:47:15 +03:00 committed by GitHub
commit 2d46e8c543
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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) {