Feat admin rbac migration (#1)
Co-authored-by: Jeffrey Smith <jasafpro@gmail.com> Co-committed-by: Jeffrey Smith <jasafpro@gmail.com>
This commit was merged in pull request #1.
This commit is contained in:
@@ -41,11 +41,10 @@ func (h *testHarness) request(method, path, token string, body interface{}) *htt
|
||||
return w
|
||||
}
|
||||
|
||||
func makeToken(userID, email, role string) string {
|
||||
func makeToken(userID, email, _ string) string {
|
||||
claims := Claims{
|
||||
UserID: userID,
|
||||
Email: email,
|
||||
Role: role,
|
||||
RegisteredClaims: jwt.RegisteredClaims{
|
||||
IssuedAt: jwt.NewNumericDate(time.Now()),
|
||||
ExpiresAt: jwt.NewNumericDate(time.Now().Add(15 * time.Minute)),
|
||||
|
||||
Reference in New Issue
Block a user