Skip to content

Conversation

maxkostow
Copy link
Contributor

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

#402 caused a regression in the client that will cache the initial Authorization header

What is the new behavior?

Still allows overriding the Authorization header, but otherwise will use the value from auth.session()

@thorwebdev thorwebdev requested a review from soedirgo March 30, 2022 06:53
@soedirgo soedirgo merged commit 79b5033 into supabase:master Mar 30, 2022
@maxkostow maxkostow deleted the fix_header_caching branch March 30, 2022 16:29
mandarini pushed a commit that referenced this pull request Oct 2, 2025
We were using mocha which presented some challenges and less than good experience when it came to testing. We're moving to vitest and we're also using Typescript in our testing to easily catch some of the typing issues that might arise earlier.

We're also adding a coverage so later we can setup CI to take that into consideration.
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