From 53f14a093e1f9ec403344cc1348873cee0df07a7 Mon Sep 17 00:00:00 2001 From: badolamgk Date: Thu, 3 Oct 2024 10:04:04 +0530 Subject: [PATCH] fix: comment on token validator --- _example/main.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/_example/main.go b/_example/main.go index 0803495..dd9c585 100644 --- a/_example/main.go +++ b/_example/main.go @@ -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