Skip to content

Commit 9635113

Browse files
committed
Fix reset password response
1 parent 2483758 commit 9635113

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/workos/user_management.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -869,7 +869,9 @@ def reset_password(token:, new_password:)
869869
),
870870
)
871871

872-
WorkOS::UserResponse.new(response.body).user
872+
parsed_response = JSON.parse(response.body)
873+
user_data = parsed_response['user']
874+
WorkOS::User.new(user_data.to_json)
873875
end
874876

875877
# Get an Organization Membership

0 commit comments

Comments
 (0)