未验证 提交 6033a0a7 编写于 作者: Y Yening Qin 提交者: GitHub

fix: err is nil (#914)

上级 e8cfe463
......@@ -2,6 +2,7 @@ package router
import (
"context"
"errors"
"fmt"
"net/http"
"strconv"
......@@ -195,7 +196,7 @@ func extractTokenMetadata(r *http.Request) (*AccessDetails, error) {
if ok && token.Valid {
accessUuid, ok := claims["access_uuid"].(string)
if !ok {
return nil, err
return nil, errors.New("failed to parse access_uuid from jwt")
}
return &AccessDetails{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册