Skip to content

Conversation

theolampert
Copy link
Contributor

@theolampert theolampert commented Nov 27, 2023

What kind of change does this PR introduce?

Fixes a small bug when decoding API errors in the GoTrue package.

What is the current behavior?

The current keyDecodingStrategy used by the GoTrue package already decodes from snake case to camel case, however coding keys were explicitly set, leading to an error message with missing information. I came across this when trying out Supabase for the first time and receiving an error about an unconfirmed email address, it was impossible to debug this without running a network proxy and inspecting the response.

What is the new behavior?

Removes codingKeys from GoTrueError.APIError as this is covered already by keyDecodingStrategy and was causing issues.

@theolampert theolampert requested a review from grdsdev as a code owner November 27, 2023 22:21
Copy link
Contributor

@grdsdev grdsdev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @theolampert

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants