Add event query api

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-28 01:05:47 +08:00
parent b6003544c8
commit b3fe91444d
8 changed files with 79 additions and 43 deletions

View File

@@ -99,10 +99,9 @@ func VerifyMagicLink(c *gin.Context) {
// Generate jwt
JwtTool := cryptography.Token{
UserID: user.UserId,
Application: viper.GetString("server.application"),
}
accessToken, refreshToken, err := JwtTool.IssueTokens()
accessToken, refreshToken, err := JwtTool.IssueTokens(user.UserId)
if err != nil {
c.JSON(500, gin.H{
"status": "error generating tokens",