acoustic-zebra-63757
05/10/2023, 3:27 PM// we always pass refresh (true) on login so that the session can be refreshed when there is already an active session
.createBrowserLoginFlow({ refresh: true, aal: aal2 ? "aal2" : "aal1" })
If I remove the refresh: true
from the createBrowserLoginFlow()
function call, however, then I'm taken straight to the dashboard. With the refresh
parameter, I was receiving code 1010003 which I found in the Login Flow Hander.
What I was curious about was if there was any harm in removing the refresh
parameter? What does the user gain by verifying themselves? An extension to their session?
Thanks!acoustic-zebra-63757
05/10/2023, 3:38 PMacoustic-zebra-63757
05/10/2023, 3:44 PMacoustic-zebra-63757
05/10/2023, 7:32 PMproud-plumber-24205
05/11/2023, 1:48 PMrefresh=true
query parameter is only necessary when you want the user to log in again - "prove they are who they say they are". This is especially useful on actions that are destructive.
Since this is frontend code, this of course shouldn't be relied on if your service requires the user to prove themselves. Rather redirect the user through this flow from your backend service.acoustic-zebra-63757
05/11/2023, 2:27 PMproud-plumber-24205
05/11/2023, 2:35 PMacoustic-zebra-63757
05/11/2023, 3:01 PM