π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Fix typo
Neeraj Gupta186981014ea9
diff --git a/server/pkg/controller/user/jwt.go b/server/pkg/controller/user/jwt.goindex a3d02b2eff..d804f4cef3 100644--- a/server/pkg/controller/user/jwt.go+++ b/server/pkg/controller/user/jwt.go@@ -13,15 +13,15 @@ import (const ValidForDays = 1func (c *UserController) GetJWTToken(userID int64, scope enteJWT.ClaimScope) (string, error) {- tokenExpirty := time.NDaysFromNow(1)+ tokenExpiry := time.NDaysFromNow(1)if scope == enteJWT.ACCOUNTS {- tokenExpirty = time.NMinFromNow(30)+ tokenExpiry = time.NMinFromNow(30)}// Create a new token object, specifying signing method and the claims// you would like it to contain.token := jwt.NewWithClaims(jwt.SigningMethodHS256, &enteJWT.WebCommonJWTClaim{UserID: userID,- ExpiryTime: tokenExpirty,+ ExpiryTime: tokenExpiry,ClaimScope: &scope,})// Sign and get the complete encoded token as a string using the secret