Last active
July 31, 2018 01:48
-
-
Save evgomes/7befcd5d9d963b47bb5163182f198487 to your computer and use it in GitHub Desktop.
Create token method from the token handler of JWT API.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public AccessToken CreateAccessToken(User user) | |
{ | |
var refreshToken = BuildRefreshToken(user); | |
var accessToken = BuildAccessToken(user, refreshToken); | |
_refreshTokens.Add(refreshToken); | |
return accessToken; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment