mirror of
https://github.com/zadam/trilium.git
synced 2025-11-08 04:42:28 +08:00
Merge pull request #1714 from yiranlus/develop
Support Bearer Authentication
This commit is contained in:
commit
2d46e8c543
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue