Remove unsupported special characters from the code verifier runes

This commit is contained in:
Leandro Lafin 2024-07-10 17:58:34 -03:00
parent a4221a337d
commit 8693c9a53b
No known key found for this signature in database
GPG Key ID: 60C427B9DF40CB72
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ import (
const (
CodeChallengeMethodPlain = "plain"
CodeChallengeMethodS256 = "S256"
asciiCharset = " !\"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_`abcdefghijklmnopqrstuvwxyz{|}~"
asciiCharset = "-.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz~"
)
// SecretBytes attempts to base64 decode the secret, if that fails it treats the secret as binary