Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add debug option for auth client #804

Merged
merged 2 commits into from
Jul 26, 2023

Conversation

astoiccoder
Copy link
Contributor

What kind of change does this PR introduce?

Feature to introduce the option to pass a debug flag down to gotrue client.
Bumps gotrue-js to v2.39.1.

What is the current behavior?

Currently it is not possible to pass the debug flag to the authentication client.
The debug flag was recently introduced here and first released in v2.35.0.

What is the new behavior?

gotrue-js has been bumped to v2.39.1 in order to make the debug flag option available in SupabaseAuthClientOptions.
Introduce debug flag in auth settings for SupabaseClientOptions and pass it on to the SupabaseAuthClient.

Additional context

This is my first try of a contribution, so please let me know if I did something wrong. Since this was faster implemented than described, I went straight to implementation instead of raising a discussion first.
If I should split the version bump in a separate PR please let me know as well.

Currently I have an issue with authentication in supabase-js client and I believe having this debug option could help me understand the issue better.

@coveralls
Copy link

Pull Request Test Coverage Report for Build 5495303954

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 66.492%

Totals Coverage Status
Change from base Build 5322600712: 0.0%
Covered Lines: 83
Relevant Lines: 107

💛 - Coveralls

@soedirgo soedirgo requested review from hf, J0 and kangmingtay July 10, 2023 09:28
@hf
Copy link
Contributor

hf commented Jul 24, 2023

@astoiccoder Can you please remove the package.json and package-lock.json files as they conflict and we'll merge this!

@astoiccoder
Copy link
Contributor Author

@hf thanks a lot for having a look! Resolved the conflicts now

@hf hf changed the title feat: add debug option for gotrue client feat: add debug option for auth client Jul 26, 2023
Copy link
Contributor

@hf hf left a comment

Choose a reason for hiding this comment

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

Congrats on your first contribution! 🎉

@hf hf merged commit 27db298 into supabase:master Jul 26, 2023
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.

4 participants