DEV Community

Discussion on: PKCE authenticaton for Nuxt SPA with Laravel as backend

Collapse
 
stefant123 profile image
StefanT123

If your both applications are on the same top-level domain, yes, it's best to use Sanctrum. If they are not on the same top-level domain, you can't use Sanctrum.

Collapse
 
themustafaomar profile image
Mustafa Omar

Thank you for the fast response <3

Collapse
 
nomikz profile image
nomikz

Thanks for informative post.
I wanted to know if front and back on two domains, can't we use sanctum laravel.com/docs/7.x/sanctum#api-t... api token authentication?

Thread Thread
 
stefant123 profile image
StefanT123 • Edited

You can, but I haven't used it yet. I think it's not as flexible as passport.