mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
add support for Bearer auth
This commit is contained in:
parent
3a3f5be7be
commit
22f1feece3
@ -48,6 +48,11 @@ function parseAuthToken(auth: string | undefined) {
|
|||||||
auth = basicAuthChunks[1];
|
auth = basicAuthChunks[1];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (auth.startsWith("Bearer ")) {
|
||||||
|
// allow also bearer auth format
|
||||||
|
auth = auth.substring(7);
|
||||||
|
}
|
||||||
|
|
||||||
const chunks = auth.split("_");
|
const chunks = auth.split("_");
|
||||||
|
|
||||||
if (chunks.length === 1) {
|
if (chunks.length === 1) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user