We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cbb24f commit 0fcf052Copy full SHA for 0fcf052
src/store/auth.ts
@@ -18,10 +18,9 @@ export const authAtom = atomWithStorage<AuthState>('maa-copilot-auth', {})
18
export function fromCredentials(credentials: MaaLoginRsp): AuthState {
19
return {
20
token: credentials.token,
21
- validBefore: credentials.validBefore.toLocaleString(),
+ validBefore: credentials.validBefore.toISOString(),
22
refreshToken: credentials.refreshToken,
23
- refreshTokenValidBefore:
24
- credentials.refreshTokenValidBefore.toLocaleString(),
+ refreshTokenValidBefore: credentials.refreshTokenValidBefore.toISOString(),
25
activated: credentials.userInfo.activated,
26
userId: credentials.userInfo.id,
27
username: credentials.userInfo.userName,
0 commit comments