Skip to content

Commit 6bed2a1

Browse files
authored
Fix typo in task api scope (#83)
1 parent 08327d1 commit 6bed2a1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/middleware/auth/auth.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func NewAuthMiddleware(cfg *config.Config, userRepo *uRepo.UserRepository) (*jwt
5555
return jwt.MapClaims{
5656
auth.IdentityKey: fmt.Sprintf("%d", u.ID),
5757
"type": "user",
58-
"scopes": []string{"task:read", "task.write", "label:read", "label:write", "user:write", "tokens:write", "user:read", "user:write", "token:write"},
58+
"scopes": []string{"task:read", "task:write", "label:read", "label:write", "user:read", "user:write", "token:write"},
5959
}
6060
}
6161
return jwt.MapClaims{}

0 commit comments

Comments
 (0)