I am using React. See these two snippets:
const auth = firebase.auth(); await auth.setPersistence(firebase.auth.Auth.Pe