We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 225e9fc commit 1c3be75Copy full SHA for 1c3be75
authdb/authdb.go
@@ -91,7 +91,7 @@ func (c *UserContext) MarshalJSON() ([]byte, error) {
91
// token creation time. To validate the authenticity of the token, use
92
// ValidatePBKDF2().
93
func DecodeAuthToken(token string) (username string, created time.Time, err error) {
94
- payload, err := base64.RawURLEncoding.DecodeString(token)
+ payload, err := base64.RawURLEncoding.WithPadding(base64.NoPadding).DecodeString(token)
95
if err != nil {
96
return username, created, err
97
}
0 commit comments