JWT for the web cookie?

0

Good guys.

I am creating an application, where the login is made in a service for both api and the web.

For the api there is no problem because it is sent in the header, but I do not understand how I use it on the web. If I make a request for ajax I include the header, but what happens when the request is by the method get ...? I do not know how to include the token in the request, I do not know if using cookie is the correct way ... I would like to know if you can give me an example of how to treat it from the web.

Thanks in advance.

    
asked by Rafael Licett 13.11.2017 в 19:08
source

1 answer

0

There is already a library that makes everything automatic already

    
answered by 16.11.2017 в 10:50