switch to jwt.RegisterdClaims

This commit is contained in:
Matthew R. Kasun
2022-06-27 10:47:28 -04:00
parent 2c00f96a71
commit 4dbcd0a630
2 changed files with 8 additions and 8 deletions

View File

@@ -41,7 +41,7 @@ type UserClaims struct {
IsAdmin bool
UserName string
Networks []string
jwt.StandardClaims
jwt.RegisteredClaims
}
// SuccessfulUserLoginResponse - successlogin struct
@@ -56,7 +56,7 @@ type Claims struct {
ID string
MacAddress string
Network string
jwt.StandardClaims
jwt.RegisteredClaims
}
// SuccessfulLoginResponse is struct to send the request response