DEV Community

loading...

Discussion on: Developing token authentication using ASP.NET Core

Collapse
stan92 profile image
Stan92

First of all, I thank you for this tutorial.. very useful..
I have a couple of questions (I'm new to JWT).

Let's say that I have a login page.
From this page I get the token.

I wonder to know how to pass it to the next controller (I use a redirect action when the credentials are correct) and globally how to add the famous header (Authorization:Bearer myToken) to all the controllers I use

My second question is how to manage the token refresh?

Thanks once again

Forem Open with the Forem app