Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Fix jwt token expiry time

Neeraj Gupta93186421b162
diff --git a/server/pkg/controller/user/user.go b/server/pkg/controller/user/user.go
index aa985d503c..405df08854 100644
--- a/server/pkg/controller/user/user.go
+++ b/server/pkg/controller/user/user.go
@@ -290,7 +290,7 @@ func (c *UserController) NotifyAccountDeletion(userID int64, userEmail string, i
}
recoverToken, err2 := c.GetJWTTokenForClaim(&enteJWT.WebCommonJWTClaim{
UserID: userID,
- ExpiryTime: time.Microseconds(),
+ ExpiryTime: time.MicrosecondsAfterDays(7),
ClaimScope: enteJWT.RestoreAccount.Ptr(),
Email: userEmail,
})