fixes
This commit is contained in:
@@ -11,6 +11,7 @@ type Account struct {
|
||||
LastName string `json:"lastName,omitempty"`
|
||||
VerifiedIdentity *bool `json:"verifiedIdentity,omitempty"`
|
||||
BirthDate string `json:"birthdate,omitempty"`
|
||||
Type string `json:"type,omitempty"`
|
||||
LocalCredentials
|
||||
}
|
||||
|
||||
@@ -31,7 +32,7 @@ func (account Account) CreateToken(ttl time.Duration, key string) (token string,
|
||||
expires_at := jwt.NewNumericDate(time.Now().Add(ttl))
|
||||
claims := UserClaims{
|
||||
RegisteredClaims: jwt.RegisteredClaims{
|
||||
Subject: account.Email,
|
||||
Subject: account.ID,
|
||||
ExpiresAt: expires_at,
|
||||
},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user