public static string CreateToken(ApplicationUser user) { var token = new UserToken { UserId = user.Id, Username = user.Username }; return(JwtHelper.EncodeToken(token)); }
private string GetToken(UserModel user) { // Generate token var token = new UserToken() { Username = user.Username, UserId = user.HashId }; return(JwtHelper.EncodeToken(token)); }