fix: Don't store token in SDK by default (#9704)

This commit is contained in:
Stevche Radevski
2024-10-22 10:42:55 +02:00
committed by GitHub
parent d8e3e04895
commit abe003a5d6
3 changed files with 30 additions and 13 deletions
+2 -1
View File
@@ -301,7 +301,8 @@ export class Client {
const hasSession = hasStorage("sessionStorage")
const storageMethod =
this.config.auth?.jwtTokenStorageMethod || (hasLocal ? "local" : "memory")
this.config.auth?.jwtTokenStorageMethod ||
(hasLocal ? "local" : "nostore")
const storageKey =
this.config.auth?.jwtTokenStorageKey || this.DEFAULT_JWT_STORAGE_KEY