It depends on how you manage the redirection after a successful login.
InertiaJS can handle the redirection.
import { router } from '@inertiajs/vue3'
router.post(url, {
onSuccess: () => {
return Promise.all([
this.firstTask(),
this.secondTask()
])
},
onFinish: visit => {
// Not called until firstTask() and secondTask() have finished
},
})
And Laravel can handle the redirection from the backend.