-
Notifications
You must be signed in to change notification settings - Fork 34
Closed
Description
Hi there!
We are testing out not-so-happy paths in our authentication flow, and found an issue with the password auth flow: https://workos.com/docs/reference/user-management/authentication/password
When the user's email is not verified, we expect to receive a email_verification_required error. However, the handle_error_response method in the WorkOS client doesn't pass along the code or pending_authentication_token fields to the default APIError class:
workos-ruby/lib/workos/client.rb
Lines 169 to 173 in 68133ff
| raise APIError.new( | |
| message: json['message'], | |
| http_status: http_status, | |
| request_id: response['x-request-id'], | |
| ) |
Could y'all make it so the else case here passes along the code and original error response if available?
Our workaround for now is to drop down to using the REST API via Faraday
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels