fix cookie
Publish to npm / publish (push) Failing after 7s
Publish to npm / publish (push) Failing after 7s
This commit is contained in:
+2
-2
@@ -185,12 +185,12 @@ export class SimApiCore {
|
||||
|
||||
setToken(token: string): void {
|
||||
const name = this.auth.token_name
|
||||
document.cookie = `${name}=${token}; path=/; max-age=315360000; samesite=Strict`
|
||||
document.cookie = `${name}=${token}; path=/; max-age=315360000; samesite=Lax`
|
||||
}
|
||||
|
||||
removeToken(): void {
|
||||
const name = this.auth.token_name
|
||||
document.cookie = `${name}=; path=/; max-age=0; samesite=Strict`
|
||||
document.cookie = `${name}=; path=/; max-age=0; samesite=Lax`
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user