Yes and no, no because authentication on mobile can't be the same, and yes because business logic can share the same endpoints just depends on you. You can read more on the document page laravel.com/docs/11.x/sanctum#mobile-application-authentication
am guessing the error is coming from .evn file try this config in your .env APP_URL=localhost:8000 FRONTEND_URL=localhost:4200 SESSION_SECURE_COOKIE=false SESSION_DOMAIN=localhost SANCTUM_STATEFUL_DOMAINS=localhost:4200 let me know if it works
Thankyou it was a big help
Excelentes videos
Thank you
Is it possible to use the same Laravel API for SPA and mobile app (Angular + Ionic)?
Yes and no, no because authentication on mobile can't be the same, and yes because business logic can share the same endpoints just depends on you. You can read more on the document page laravel.com/docs/11.x/sanctum#mobile-application-authentication
@@tdevclassthat is awesome! Tnx
code in github?
hi thanks for the tutorial but i still get Unauthenticated error
am guessing the error is coming from .evn file
try this config in your .env
APP_URL=localhost:8000
FRONTEND_URL=localhost:4200
SESSION_SECURE_COOKIE=false
SESSION_DOMAIN=localhost
SANCTUM_STATEFUL_DOMAINS=localhost:4200
let me know if it works