Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions _example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,10 @@ func main() {
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
if strings.HasPrefix(claims.User.Name, "dev_") { // allow all users with dev auth
return true
}
return strings.HasPrefix(claims.User.Name, "custom123_")
return strings.HasPrefix(claims.User.Name, "custom123_") // allow all users with custom123 auth
}
return false
}),
Expand Down