Set Persistence
Use the setPersistenceMethod
method to set the persistence type for Firebase Authentication sessions. This determines how the user's authentication state is stored.
Method
Parameters
persistenceType (
String
): The type of persistence to use for storing the authentication state (e.g.,'local'
,'session'
,'none'
).databaseName (
String
): The name of the database to associate with the specified persistence method.
Return
void: This method does not return a value.
This method allows you to configure how Firebase Authentication manages the user's session, enabling different persistence types such as local storage, session storage, or none.
Last updated