Kenan Hj
Kenan Hj

Reputation: 15

How can i use Access Token in laravel project

I get now the Access Token from Lumen-API-JWT (Backend) but the question is how can i work with that in the laravel-8-Client (frontend) project

Any Idea ?

Upvotes: 0

Views: 504

Answers (1)

FaAzI Ahamed
FaAzI Ahamed

Reputation: 61

In generally when we working with HTTP API or call need to authentication the user, Server will return the Access Token (JWT or whatever). Every API Request you need to bind that access token along with the header. Ex. Authorization: Bearer {{access_token}}.

When you fail to bind the access token server will return unauthenticated HTTP status code with the relevant message.

Please refer below links,

https://www.loginradius.com/blog/async/everything-you-want-to-know-about-authorization-headers

Upvotes: 1

Related Questions