转成 标准的jwt Token

This commit is contained in:
eson
2023-07-10 17:54:10 +08:00
parent 8f95be2ba5
commit fb4414fab6
14 changed files with 23 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ func (svcCtx *ServiceContext) ParseJwtToken(r *http.Request) (jwt.MapClaims, err
if AuthKey == "" {
return nil, nil
}
AuthKey = AuthKey[7:]
if len(AuthKey) <= 50 {
return nil, errors.New(fmt.Sprint("Error parsing token, len:", len(AuthKey)))