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

Fouteox's avatar

Why AuthSessionStatus on login page?

In the NuxtJS Starter Kit, AuthSessionStatus is implemented.

If I understand its usefulness in the lost password page, to inform the user of the sending of the email, I do not understand its usefulness on the login page.

When will the login page receive a reset parameter?

The code :

useEffect(() => {
        if (router.query.reset?.length > 0 && errors.length === 0) {
            setStatus(atob(router.query.reset))
        } else {
            setStatus(null)
        }
    })

{/* Session Status */}
<AuthSessionStatus className="mb-4" status={status} />

Page link: https://github.com/laravel/breeze-next/blob/master/src/pages/login.js

0 likes
1 reply
Fouteox's avatar
Fouteox
OP
Best Answer
Level 5

The answer :

When you actually change your password on the password change page after clicking on the email link, you are redirected to the login page with the message "Password updated"

Please or to participate in this conversation.