I
I
Ivan Huk2020-07-21 15:19:10
Laravel
Ivan Huk, 2020-07-21 15:19:10

How to pass laravel passport react.js token to application?

I want to use graphql in a new project.
And now I got into the task of creating an authorization.
The question remains, how to pass the react-apollo token on the first page load?
Those. when a person has already logged in to the site and updated the page, I need to get the user token from the blade template in order to pass it to js in the future

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question