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
2 changes: 1 addition & 1 deletion authdb/authdb.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (c *UserContext) MarshalJSON() ([]byte, error) {
// token creation time. To validate the authenticity of the token, use
// ValidatePBKDF2().
func DecodeAuthToken(token string) (username string, created time.Time, err error) {
payload, err := base64.RawURLEncoding.DecodeString(token)
payload, err := base64.RawURLEncoding.WithPadding(base64.NoPadding).DecodeString(token)
if err != nil {
return username, created, err
}
Expand Down