Ember Auth with PHP Backend



i’m using laravel as a PHP Backend and i’m trying to set up login with ember simpler auth and laravels authentication.

I’m getting the following error:

TokenMismatchException in VerifyCsrfToken.php line 68

Looks like it has something to do with {{ csrf_field() }} missing. But that does only work if your using laravels blade templates.

I just cant put the pieces together to make ember simple auth work with laravel/php backend.

Im using laravel only as backend, template/frontend stuff is done with ember.

Any thoughts?


You’all want to either disable csrf token checks for your API or get the token to Ember to send with each request. Turning off the token check would be simpler :wink:


Thanks for your reply :slight_smile: Disabling did help. After some more research, I did come up with the same solution.

Though Im not sure if its a good solution :sweat_smile: