feat(auth): add psid field to various login request DTOs and schemas
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user