Skip to content

useAuthTransition

useAuthTransition(): AuthTransitionState

Defined in: packages/react/src/auth/AuthTransitionContext.tsx:96

Reads the current auth-transition marker — see AuthTransitionState’s own field doc comments for the full contract. Safe to call with no AuthTransitionProvider mounted (existing tests, a host app that hasn’t adopted it): returns the default, permanently-not-pending state, so every list hook’s own push-vs-expected comparison trivially passes and behaves exactly as it did before this marker existed.

AuthTransitionState

The current AuthTransitionState.