Skip to content

Commit

Permalink
fix endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightczx committed Feb 6, 2024
1 parent 373a3af commit c0750cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ public async Task<IActionResult> HandleAuthorizationCallbackAsync([FromQuery(Nam

// Authorized
string token = passportService.CreateTokenByUserId(identity.UserId);
return Redirect($"https://passport.snapgenshin.cn/api/login?token={token}");
return Redirect($"https://passport.snapgenshin.cn/api/users/login?token={token}");
}

[Authorize]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public string CreateTokenByUserId(int userId)
{
new(PassportClaimTypes.UserId, userId.ToString()),
}),
Expires = DateTime.UtcNow.AddHours(2),
Expires = DateTime.UtcNow.AddHours(3),
Issuer = "homa.snapgenshin.com",
SigningCredentials = new(jwtSigningKey, SecurityAlgorithms.HmacSha256Signature),
};
Expand Down

0 comments on commit c0750cf

Please sign in to comment.