This page states that calls to setPersistence() prior to signInWithRedirect() should reapply the requested persistence model at the end of the redirect flow. We are seeing that despite requesting browserSessionPersistence before sending the link, and pasting the emailed link directly into the same browser tab, the persistence model is reverting to LOCAL.
This also happens with federated auth providers using signInWithRedirect().
Steps and code to reproduce issue
E.g. minimal piece of code to send a signin link by email:
Operating System
windows
Environment (if applicable)
Chrome 131, Firefox 130
Firebase SDK Version
10.13.2
Firebase SDK Product(s)
Auth
Project Tooling
React app / Vue & Quasar app
Detailed Problem Description
This page states that calls to
setPersistence()
prior tosignInWithRedirect()
should reapply the requested persistence model at the end of the redirect flow. We are seeing that despite requestingbrowserSessionPersistence
before sending the link, and pasting the emailed link directly into the same browser tab, the persistence model is reverting to LOCAL.This also happens with federated auth providers using
signInWithRedirect()
.Steps and code to reproduce issue
E.g. minimal piece of code to send a signin link by email:
Note the persistence printed to console here is:
After pasting the redirect link and re-entering the email address on the test app, this code detects & applies the authentication:
and the
onAuthStateChanged()
handler:logs: