Skip to content

Commit

Permalink
return 200 correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
guppykang committed Oct 9, 2024
1 parent c4770b9 commit f3ce62d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion endpoints/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (c *Client) VerifyForUser(req types.VerifyForUserRequest) (*types.VerifyFor
}
defer resp.Body.Close()

if resp.StatusCode != http.StatusSeeOther {
if resp.StatusCode != http.StatusOK {
fullBody, err := io.ReadAll(resp.Body)
if err != nil {
return nil, fmt.Errorf("response status code %d", resp.StatusCode)
Expand All @@ -152,5 +152,6 @@ func (c *Client) VerifyForUser(req types.VerifyForUserRequest) (*types.VerifyFor
if err != nil {
return nil, err
}

return &res, nil
}

0 comments on commit f3ce62d

Please sign in to comment.