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

fix: return error if missing session or missing custom auth header #891

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

kangmingtay
Copy link
Member

What kind of change does this PR introduce?

  • Adds a new property hasCustomAuthorizationHeader which will be set by supabase-js
  • getUser should return an AuthSessionMissingError if there is no session and no custom auth header is set

src/lib/types.ts Outdated Show resolved Hide resolved
Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
@kangmingtay kangmingtay merged commit 8d16578 into master Apr 25, 2024
3 checks passed
@kangmingtay kangmingtay deleted the km/fix-get-user branch April 25, 2024 11:10
kangmingtay pushed a commit that referenced this pull request Apr 25, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.64.1](v2.64.0...v2.64.1)
(2024-04-25)


### Bug Fixes

* return error if missing session or missing custom auth header
([#891](#891))
([8d16578](8d16578))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
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.

None yet

3 participants