Before Auth State Changed
Use the beforeAuthStateChange
method to register a callback function that is called before the authentication state changes in Firebase Authentication.
Method
Parameters
authToken (
String
): The authentication token that triggers the callback before the state change.refreshToken (
String
): The refresh token used to maintain the session.
Return
void: This method does not return a value.
This method allows developers to execute a callback function before any changes in the authentication state, providing an opportunity to handle or respond to auth state transitions proactively.
Last updated