Defines a callback function to be executed when an authentication state is being set. This function receives the incoming request and should return or resolve with an ApplicationState object.
The incoming request.
A Promise that resolves with the ApplicationState object when the operation is completed, or the ApplicationState object directly.
Defines a callback function to be executed when an authentication state is being set. This function receives the incoming request and should return or resolve with an ApplicationState object.