0👍
You are using the TokenGuard
of Laravel, There many way to let the guard recognise the authentication, the best methods:
-
Send the token in
api_token
attribute in the request’s query.this.newOption.api_token = token;
-
Send the token in
Authorization
header withBearer
prefix.{ headers: { Authorization: 'Bearer THE_TOKEN' } }
Source:stackexchange.com