Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
add support for Bearer auth
Yiran Lu22f1feece3b0
diff --git a/src/services/etapi_tokens.ts b/src/services/etapi_tokens.tsindex 93d916a60c..031856f2a7 100644--- a/src/services/etapi_tokens.ts+++ b/src/services/etapi_tokens.ts@@ -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) {