AI agent instructions
AI agent instructions
error when the callback throws.
Always waits for Managed Auth readiness before invoking the callback.
Parameters
(session: Session) => Promise<T>
required
Async work to perform with the ready session.
AuthWaitOptions
Controls the Managed Auth readiness wait, including timeout and cancellation.Default:
Returns
Raises
- Error if startup fails, the callback throws, or cleanup fails after a successful callback.