Skip to content

use/useAuthFlow ​

Overview ​

Sets up reauthentication routing, UnauthorizedError interception, and a form context for forms that gate access behind prior authentication.

Methods ​

  • useAuthFlow - Registers reauthentication routing behaviour, produces a submission error handler, and provides a form context.

Types ​

AuthFlowContext ​

AuthFlowOptions ​

Source ​

client/lib/use/useAuthFlow.js:1