Compare commits

..
4 Commits
Author SHA1 Message Date
xrain 78ef6d9ca0 fix cookie
Publish to npm / publish (push) Failing after 7s
2026-05-05 07:16:29 +08:00
xrain cee0bc4cfe fix cookie
Publish to npm / publish (push) Failing after 7s
2026-05-05 07:06:34 +08:00
xrain 9a8510d833 fix cookie
Publish to npm / publish (push) Failing after 5s
2026-05-05 07:01:21 +08:00
xrain ee034a7252 cookie过期时间设置
Publish to npm / publish (push) Failing after 19s
2026-05-05 06:51:07 +08:00
+1 -1
View File
@@ -185,7 +185,7 @@ export class SimApiCore {
setToken(token: string): void { setToken(token: string): void {
const name = this.auth.token_name const name = this.auth.token_name
document.cookie = `${name}=${token}; path=/; secure; samesite=none` document.cookie = `${name}=${token}; path=/; max-age=315360000; secure; samesite=none`
} }
removeToken(): void { removeToken(): void {