Skip to content

Commit

Permalink
fix: fix IntrospectToken might null pointer
Browse files Browse the repository at this point in the history
  • Loading branch information
luojielin committed Jul 3, 2023
1 parent 5f97c51 commit 3d4310f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion authentication/authentication_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -362,8 +362,14 @@ func (client *AuthenticationClient) IntrospectToken(token string) (*dto.TokenInt
Headers: client.getReqHeaders(header),
ReqDto: body,
})
println(string(resp.Body))

var response dto.TokenIntrospectResponse

if resp == nil || resp.Body == nil {
return &response, err
}
println(string(resp.Body))

if err != nil {
return nil, err
}
Expand Down

0 comments on commit 3d4310f

Please sign in to comment.