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 support for error codes #855

Merged
merged 1 commit into from
Mar 26, 2024
Merged

feat: add support for error codes #855

merged 1 commit into from
Mar 26, 2024

Conversation

hf
Copy link
Contributor

@hf hf commented Feb 24, 2024

Adds support for error codes. All AuthError descendants will now have a code property which will encode (when present and supported by the server) the reason why the error occurred.

To support this, the library will now advertise X-Supabase-Api-Version: 2024-01-01 which is the first version of a new versioning strategy that supports a different encoding for error responses.

See:

src/lib/helpers.ts Show resolved Hide resolved
@hf hf merged commit 99821f4 into master Mar 26, 2024
3 checks passed
@hf hf deleted the hf/error-codes branch March 26, 2024 07:07
kangmingtay pushed a commit that referenced this pull request Mar 28, 2024
🤖 I have created a release *beep* *boop*
---


##
[2.63.0](v2.62.2...v2.63.0)
(2024-03-26)


### Features

* add method for anonymous sign-in
([#858](#858))
([e8a1fc9](e8a1fc9))
* add support for error codes
([#855](#855))
([99821f4](99821f4))
* explicit `cache: no-store` in fetch
([#847](#847))
([034bee0](034bee0))
* warn use of `getSession()` when `isServer` on storage
([#846](#846))
([9ea94fe](9ea94fe))


### Bug Fixes

* refactor all pkce code into a single method
([#860](#860))
([860bffc](860bffc))
* remove data type
([#848](#848))
([15c7c82](15c7c82))

---
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.

2 participants