May 23, 2024
0
Level 3
Which strategy to connect two Nuxt to Laravel API?
What strategy should I better use to connect (signing, registering users...) two different Nuxt frontends, one for clients and one for admins, to my Laravel API ? All can be under the same top-level domain, so I plan to use Sanctum.
On Nuxt side, I will probably use @sidebase/nuxt-auth.
- Should I use one
webguard or two guards:admin-apiandclient-api? - Should I use scopes?
- Should I use two middlewares for two route groups checking the request origin:
www.mywebsite.comoradmin.mywebsite.com?
Please or to participate in this conversation.