diff --git a/src/Snap.Hutao.Server/Snap.Hutao.Server/Controller/GithubAuthorizationController.cs b/src/Snap.Hutao.Server/Snap.Hutao.Server/Controller/GithubAuthorizationController.cs index 2f72973..9585fd6 100644 --- a/src/Snap.Hutao.Server/Snap.Hutao.Server/Controller/GithubAuthorizationController.cs +++ b/src/Snap.Hutao.Server/Snap.Hutao.Server/Controller/GithubAuthorizationController.cs @@ -180,7 +180,7 @@ public async Task 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] diff --git a/src/Snap.Hutao.Server/Snap.Hutao.Server/Service/Authorization/PassportService.cs b/src/Snap.Hutao.Server/Snap.Hutao.Server/Service/Authorization/PassportService.cs index 8ae9fd2..fb0e5e1 100644 --- a/src/Snap.Hutao.Server/Snap.Hutao.Server/Service/Authorization/PassportService.cs +++ b/src/Snap.Hutao.Server/Snap.Hutao.Server/Service/Authorization/PassportService.cs @@ -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), };