Is it possible to use the same Laravel API for SPA and mobile app (Angular + Ionic)?
@tdevclass7 ай бұрын
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
@IgreIgrice-z3y7 ай бұрын
@@tdevclassthat is awesome! Tnx
@jhonrengifo-ok3fl8 ай бұрын
code in github?
@ahajri899 ай бұрын
hi thanks for the tutorial but i still get Unauthenticated error
@tdevclass9 ай бұрын
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