AuthStateChangedCallback typedef

AuthStateChangedCallback = void Function(AuthenticationState authenticationState)

Signature for callbacks that respond to authentication changes.

Registered via HasuraAuthClient.addAuthStateChangedCallback.

Implementation

typedef AuthStateChangedCallback = void Function(
  AuthenticationState authenticationState,
);