feat(auth): add psid field to various login request DTOs and schemas

This commit is contained in:
2026-07-10 16:33:29 +08:00
parent 4e06e08b15
commit dfcb06f5a9
13 changed files with 45 additions and 8 deletions
+9
View File
@@ -13,3 +13,12 @@ export async function readGuestId(): Promise<string | undefined> {
}
return undefined;
}
/** 从本地存储读 PSID;读不到 / 失败时返回 undefined(不抛)。 */
export async function readPsid(): Promise<string | undefined> {
const r = await AuthStorage.getInstance().getPsid();
if (r.success && r.data != null) {
return r.data;
}
return undefined;
}