docs: note wallet session tradeoffs

This commit is contained in:
TerryM
2026-06-02 01:00:13 +08:00
parent fc2ca62957
commit 184193e655
3 changed files with 28 additions and 9 deletions

View File

@@ -63,9 +63,11 @@ export function createTokenPocketLoginRequest(): Promise<TokenPocketLoginRequest
export async function fetchTokenPocketLoginResult(
actionId: string,
signal?: AbortSignal,
): Promise<TokenPocketLoginResult> {
const res = await fetch(
`${apiBase}/api/auth/wallet/tp-result?actionId=${encodeURIComponent(actionId)}`,
{ signal },
);
if (!res.ok) throw new Error(await res.text());
return res.json() as Promise<TokenPocketLoginResult>;