修正基本认证解码方式;添加查询 channels 接口

This commit is contained in:
2025-04-28 11:44:54 +08:00
parent 370362b0d5
commit 2fa8b4d540
5 changed files with 107 additions and 26 deletions

View File

@@ -152,7 +152,7 @@ func protect(c *fiber.Ctx, grant s.OauthGrantType, clientId, clientSecret string
if header != "" {
basic := strings.TrimPrefix(header, "Basic ")
if basic != "" {
base, err := base64.URLEncoding.DecodeString(basic)
base, err := base64.RawURLEncoding.DecodeString(basic)
if err != nil {
return nil, err
}