Skip to content

masterplan-calendar-frontend


masterplan-calendar-frontend / withReauth

Function: withReauth()

withReauth(action): Promise\<Response>

Defined in: src/lib/reauth.ts:56

Wrap an async action so it re-authenticates first when required.

Calls action(). If the server responds with 403 "Re-authentication required", it triggers a passkey prompt, then retries the action once.

Parameters

action

() => Promise\<Response>

Returns

Promise\<Response>