-
Couldn't load subscription status.
- Fork 501
Open
Labels
auth-jsRelated to the auth-js library.Related to the auth-js library.enhancementNew feature or requestNew feature or request
Description
Feature request
Describe the feature
Add a throwOnError client option to have errors be thrown instead of returning it. As an example, right now we do:
const auth = new AuthClient({ url: AUTH_URL })
const { data, error } = await auth.signUp({ email: '[email protected]', password: 'foobar' })But with throwOnError we do:
const auth = new AuthClient({ url: AUTH_URL, throwOnError: true })
const { data } = await auth.signUp({ email: '[email protected]', password: 'foobar' })Additional context
Follows supabase/postgrest-js#188 & supabase/postgrest-js#248
Metadata
Metadata
Assignees
Labels
auth-jsRelated to the auth-js library.Related to the auth-js library.enhancementNew feature or requestNew feature or request