Merge pull request #26 from metalmatze/golanglint-ci-fixes

Fix default golanglint-ci errors
This commit is contained in:
saml-dev
2025-01-17 21:25:44 -05:00
committed by GitHub
6 changed files with 13 additions and 10 deletions

View File

@@ -114,8 +114,10 @@ func VerifyAuthResponse(conn *websocket.Conn, ctx context.Context) error {
}
var authResp authResponse
json.Unmarshal(msg, &authResp)
// log.Println(authResp.MsgType)
err = json.Unmarshal(msg, &authResp)
if err != nil {
return err
}
if authResp.MsgType != "auth_ok" {
return ErrInvalidToken
}