Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

fix: add default value to auth response #128

Merged
merged 1 commit into from
Mar 27, 2023
Merged

fix: add default value to auth response #128

merged 1 commit into from
Mar 27, 2023

Conversation

dshukertjr
Copy link
Member

@dshukertjr dshukertjr commented Mar 27, 2023

What kind of change does this PR introduce?

Bug fix, feature, docs update, ...

What is the current behavior?

Please link any relevant issues here.

This PR adds some default values on some values.

This PR might not make sense at first glance, but the goal of this PR is to have the Flutter SDK not throw errors when the backend makes an mistake and changes the return type to nullable. Some of the values that are given default values are not very widely used. Having the app throw for parsing an object that isn't even used within the code is a pain, and this PR minimizes the effect of the mistake made on the backend.

There probably will be a few more of these PR coming!

Fixes supabase/supabase-flutter#414

@dshukertjr dshukertjr merged commit fec3274 into main Mar 27, 2023
@dshukertjr dshukertjr deleted the default-value branch March 27, 2023 09:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Cannot login when auth.identities last_sign_in_at is NULL
2 participants