I am in need of refresh token in an ASP.NET Core application. Currently, I have implemented refresh/access token. In my implementation, refresh token and its expiration date is stored along with User entity in the database. And, a refresh token could be used to generate new access tokens without using user/password. This works fine but, I wonder if ASP.NET Core itself or third party packages like Open Id Connect has an implementation of refresh token or not. The apllication is based on JWT and ASP.NET Identity.
While searching the web, I have found that a method named HttpContext.GetTokenAsync() exists in the Microsoft.AspNetCore.Authentication. Additionaly this question and this question on SO are discussing similiar ideas; but I am still not sure what component or implemenation they are using. And, where is refresh token is stored. In the database? another place?