Skip to content

armgit / ente

Public Imported from GitHub
0

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

Reuse existing claim for recovery

Neeraj Guptaa1dbdfd6ba6a
diff --git a/server/ente/jwt/jwt.go b/server/ente/jwt/jwt.go
index b7d7b9d20a..567ff6bfb2 100644
--- a/server/ente/jwt/jwt.go
+++ b/server/ente/jwt/jwt.go
@@ -2,7 +2,6 @@ package jwt
import (
"errors"
-
"github.com/ente-io/museum/pkg/utils/time"
)
@@ -23,6 +22,7 @@ func (c ClaimScope) Ptr() *ClaimScope {
type WebCommonJWTClaim struct {
UserID int64 `json:"userID"`
ExpiryTime int64 `json:"expiryTime"`
+ Email string `json:"email"`
ClaimScope *ClaimScope `json:"claimScope"`
}
@@ -52,9 +52,3 @@ func (c PublicAlbumPasswordClaim) Valid() error {
}
return nil
}
-
-type AccountRecoveryParams struct {
- Email string `json:"email"`
- ExpiryTime int64 `json:"expiryTime"`
- UserID int64 `json:"userID"`
-}