evgomes / jwt-api

Example API that shows how to implement JSON Web Token authentication and authorization with ASP.NET Core 7, built from scratch. Related article: https://medium.com/@evandro.ggomes/json-web-token-authentication-with-asp-net-core-2-0-b074b0cfc870

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Bug in TokenHandler.cs class

vurso opened this issue · comments

commented

Hi, cloned your repo and found the build failed due to this method in the TokenHandler.cs class:

    public AccessToken CreateAccessToken(User user)
    {
         ....
    }

The line:

var refreshToken = BuildRefreshToken(user);

Should be var refreshToken = BuildRefreshToken();

Hi @vurso

I'm sorry for replying so late, I have been really busy lately, so I could not check it before.

I fixed this issue, as well as I have updated the API to ASP.NET Core 3.1. Please, take a look at the updated code.

Thank you.