cookie过期时间设置
Publish to npm / publish (push) Failing after 19s
Publish to npm / publish (push) Failing after 19s
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=/; secure; samesite=none`
|
||||
document.cookie = `${name}=${token}; path=/; max-age=315360000; samesite=none`
|
||||
}
|
||||
|
||||
removeToken(): void {
|
||||
const name = this.auth.token_name
|
||||
document.cookie = `${name}=; path=/; max-age=0; secure; samesite=none`
|
||||
document.cookie = `${name}=; path=/; max-age=0; samesite=none`
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user