usePendingConnection
@forge/monorepo / frontend/src / usePendingConnection
Function: usePendingConnection()
usePendingConnection(
input): {expired:boolean;prompt:undefined;request:undefined; } | {expired:boolean;prompt:string;request:ConnectionRequest; }
Defined in: frontend/src/hooks/hooks.ts:162
The pending connection request, and whether the login URL is still good — task #264, AC-9.
Shaped like usePendingInteraction: a selector over state the reducer already folded, not a fetch. What it
deliberately does not do is navigate. A person clicks; an agent redirecting somebody's browser unprompted
is wrong regardless of popup blockers, and a UI that opened a consent screen by itself would be
indistinguishable from a phishing flow.
Parameters
input
view
{ connectionRequest?: ConnectionRequest; }
view.connectionRequest?
Returns
{ expired: boolean; prompt: undefined; request: undefined; } | { expired: boolean; prompt: string; request: ConnectionRequest; }