Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

ideepesh's avatar

Laravel Jetstream

Hi,

So, for a project of mine, I thought of using Laravel Jetstream but before using it I started going through its documentation. Where I found browser sessions and two-factor authentication which I didn't understand.

Please help me in understanding how Jetstream is working with sessions and two-factor authentication.

Thanks.

0 likes
2 replies
Snapey's avatar

Best way to understand it is to install it and have a play around with it.

Sessions are only different in that they default to using the database for storage (optional)

Two Factor Authentication is built for you, you can just choose to enable it as a feature or not. You can test how it works but you don't necessarily need to understand how it is checking the code.

ideepesh's avatar

The problem I am facing are :

  1. I want to know how the device in which the user Logs In is recognized in sessions?
  2. Where in Two-Factor Authentication the QR code is generated?
  3. Why in Two-Factor Authentication tokens are generated? Why not like others it is like after login they will provide an OTP to the registered email or phone?

Please or to participate in this conversation.