0

I'm working on an Android project, and I make Laravel login system using Sentinel. I am wanting to connect Laravel with Android - it always shows me the error

token mismatch.

I don't want to except my route.

K.Dᴀᴠɪs
  • 9,945
  • 11
  • 33
  • 43
Sagar Shinde
  • 95
  • 1
  • 11
  • what do you mean by token mismatch error, post your code here so that we can have a look – Akshay Katariya Jan 20 '18 at 04:20
  • 1) Post some code that you are having trouble with 2) Explain what you have tried 3) Clearly state your problem –  Jan 20 '18 at 04:20

2 Answers2

0

Sounds like you understand it's a CSRF token issue, have you verified that it is being sent in your request headers?

You should see X-CSRF-TOKEN: your token...

0

If you don't want to disable CSRF tokens, then you will need to retrieve the CSRF in one request, then pass the retrieved token along with your POST request.

Please refer to this answer

access laravel app from android app with csrf token

Naveen Dew
  • 1,295
  • 11
  • 19