Skip to content

Commit

Permalink
fix: comment on token validator
Browse files Browse the repository at this point in the history
  • Loading branch information
badolamgk committed Oct 3, 2024
1 parent 1a2c145 commit 53f14a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ func main() {
if strings.HasPrefix(claims.User.ID, "microsoft_") { // allow all users with ms auth
return true
}
if strings.HasPrefix(claims.User.ID, "patreon_") { // allow all users with ms auth
if strings.HasPrefix(claims.User.ID, "patreon_") { // allow all users with patreon auth
return true
}
if strings.HasPrefix(claims.User.ID, "discord_") { // allow all users with ms auth
if strings.HasPrefix(claims.User.ID, "discord_") { // allow all users with discord auth
return true
}
if strings.HasPrefix(claims.User.Name, "dev_") { // non-guthub allow only dev_* names
Expand Down

0 comments on commit 53f14a0

Please sign in to comment.