@supabase/gotrue-js 2.75.1-canary.3 → 2.75.1-canary.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,18 +1,34 @@
1
- # `auth-js`
2
-
3
- An isomorphic JavaScript client library for the [Supabase Auth](https://github.com/supabase/auth) API.
1
+ <br />
2
+ <p align="center">
3
+ <a href="https://supabase.io">
4
+ <picture>
5
+ <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--dark.svg">
6
+ <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/supabase-logo-wordmark--light.svg">
7
+ <img alt="Supabase Logo" width="300" src="https://raw.githubusercontent.com/supabase/supabase/master/packages/common/assets/images/logo-preview.jpg">
8
+ </picture>
9
+ </a>
10
+
11
+ <h1 align="center">Supabase Auth JS SDK</h1>
12
+
13
+ <h3 align="center">An isomorphic JavaScript SDK for the <a href="https://github.com/supabase/auth">Supabase Auth</a> API.</h3>
14
+
15
+ <p align="center">
16
+ <a href="https://supabase.com/docs/guides/auth">Guides</a>
17
+ ·
18
+ <a href="https://supabase.com/docs/reference/javascript/auth-signup">Reference Docs</a>
19
+ ·
20
+ <a href="https://supabase.github.io/supabase-js/auth-js/v2/spec.json">TypeDoc</a>
21
+ </p>
22
+ </p>
4
23
 
5
24
  <div align="center">
6
25
 
26
+ [![Build](https://github.com/supabase/supabase-js/workflows/CI/badge.svg)](https://github.com/supabase/supabase-js/actions?query=branch%3Amaster)
27
+ [![Package](https://img.shields.io/npm/v/@supabase/auth-js)](https://www.npmjs.com/package/@supabase/auth-js)
28
+ [![License: MIT](https://img.shields.io/npm/l/@supabase/supabase-js)](#license)
7
29
  [![pkg.pr.new](https://pkg.pr.new/badge/supabase/auth-js)](https://pkg.pr.new/~/supabase/auth-js)
8
-
9
30
  </div>
10
31
 
11
- ## Docs
12
-
13
- - Using `auth-js`: https://supabase.com/docs/reference/javascript/auth-signup
14
- - TypeDoc: https://supabase.github.io/supabase-js/auth-js/v2/spec.json
15
-
16
32
  ## Quick start
17
33
 
18
34
  Install
@@ -31,9 +47,9 @@ const GOTRUE_URL = 'http://localhost:9999'
31
47
  const auth = new AuthClient({ url: GOTRUE_URL })
32
48
  ```
33
49
 
34
- - `signUp()`: https://supabase.io/docs/reference/javascript/auth-signup
35
- - `signIn()`: https://supabase.io/docs/reference/javascript/auth-signin
36
- - `signOut()`: https://supabase.io/docs/reference/javascript/auth-signout
50
+ - `signUp()`: https://supabase.com/docs/reference/javascript/auth-signup
51
+ - `signIn()`: https://supabase.com/docs/reference/javascript/auth-signin
52
+ - `signOut()`: https://supabase.com/docs/reference/javascript/auth-signout
37
53
 
38
54
  ### Custom `fetch` implementation
39
55
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Known error codes. Note that the server may also return other error codes
3
- * not included in this list (if the client library is older than the version
3
+ * not included in this list (if the SDK is older than the version
4
4
  * on the server).
5
5
  */
6
6
  export type ErrorCode = 'unexpected_failure' | 'validation_failed' | 'bad_json' | 'email_exists' | 'phone_exists' | 'bad_jwt' | 'not_admin' | 'no_authorization' | 'user_not_found' | 'session_not_found' | 'session_expired' | 'refresh_token_not_found' | 'refresh_token_already_used' | 'flow_state_not_found' | 'flow_state_expired' | 'signup_disabled' | 'user_banned' | 'provider_email_needs_verification' | 'invite_not_found' | 'bad_oauth_state' | 'bad_oauth_callback' | 'oauth_provider_not_supported' | 'unexpected_audience' | 'single_identity_not_deletable' | 'email_conflict_identity_not_deletable' | 'identity_already_exists' | 'email_provider_disabled' | 'phone_provider_disabled' | 'too_many_enrolled_mfa_factors' | 'mfa_factor_name_conflict' | 'mfa_factor_not_found' | 'mfa_ip_address_mismatch' | 'mfa_challenge_expired' | 'mfa_verification_failed' | 'mfa_verification_rejected' | 'insufficient_aal' | 'captcha_failed' | 'saml_provider_disabled' | 'manual_linking_disabled' | 'sms_send_failed' | 'email_not_confirmed' | 'phone_not_confirmed' | 'reauth_nonce_missing' | 'saml_relay_state_not_found' | 'saml_relay_state_expired' | 'saml_idp_not_found' | 'saml_assertion_no_user_id' | 'saml_assertion_no_email' | 'user_already_exists' | 'sso_provider_not_found' | 'saml_metadata_fetch_failed' | 'saml_idp_already_exists' | 'sso_domain_already_exists' | 'saml_entity_id_mismatch' | 'conflict' | 'provider_disabled' | 'user_sso_managed' | 'reauthentication_needed' | 'same_password' | 'reauthentication_not_valid' | 'otp_expired' | 'otp_disabled' | 'identity_not_found' | 'weak_password' | 'over_request_rate_limit' | 'over_email_send_rate_limit' | 'over_sms_send_rate_limit' | 'bad_code_verifier' | 'anonymous_provider_disabled' | 'hook_timeout' | 'hook_timeout_after_retry' | 'hook_payload_over_size_limit' | 'hook_payload_invalid_content_type' | 'request_timeout' | 'mfa_phone_enroll_not_enabled' | 'mfa_phone_verify_not_enabled' | 'mfa_totp_enroll_not_enabled' | 'mfa_totp_verify_not_enabled' | 'mfa_webauthn_enroll_not_enabled' | 'mfa_webauthn_verify_not_enabled' | 'mfa_verified_factor_exists' | 'invalid_credentials' | 'email_address_not_authorized' | 'email_address_invalid';
@@ -1,2 +1,2 @@
1
- export declare const version = "2.75.1-canary.3";
1
+ export declare const version = "2.75.1-canary.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -7,5 +7,5 @@ exports.version = void 0;
7
7
  // - Debugging and support (identifying which version is running)
8
8
  // - Telemetry and logging (version reporting in errors/analytics)
9
9
  // - Ensuring build artifacts match the published package version
10
- exports.version = '2.75.1-canary.3';
10
+ exports.version = '2.75.1-canary.4';
11
11
  //# sourceMappingURL=version.js.map
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Known error codes. Note that the server may also return other error codes
3
- * not included in this list (if the client library is older than the version
3
+ * not included in this list (if the SDK is older than the version
4
4
  * on the server).
5
5
  */
6
6
  export type ErrorCode = 'unexpected_failure' | 'validation_failed' | 'bad_json' | 'email_exists' | 'phone_exists' | 'bad_jwt' | 'not_admin' | 'no_authorization' | 'user_not_found' | 'session_not_found' | 'session_expired' | 'refresh_token_not_found' | 'refresh_token_already_used' | 'flow_state_not_found' | 'flow_state_expired' | 'signup_disabled' | 'user_banned' | 'provider_email_needs_verification' | 'invite_not_found' | 'bad_oauth_state' | 'bad_oauth_callback' | 'oauth_provider_not_supported' | 'unexpected_audience' | 'single_identity_not_deletable' | 'email_conflict_identity_not_deletable' | 'identity_already_exists' | 'email_provider_disabled' | 'phone_provider_disabled' | 'too_many_enrolled_mfa_factors' | 'mfa_factor_name_conflict' | 'mfa_factor_not_found' | 'mfa_ip_address_mismatch' | 'mfa_challenge_expired' | 'mfa_verification_failed' | 'mfa_verification_rejected' | 'insufficient_aal' | 'captcha_failed' | 'saml_provider_disabled' | 'manual_linking_disabled' | 'sms_send_failed' | 'email_not_confirmed' | 'phone_not_confirmed' | 'reauth_nonce_missing' | 'saml_relay_state_not_found' | 'saml_relay_state_expired' | 'saml_idp_not_found' | 'saml_assertion_no_user_id' | 'saml_assertion_no_email' | 'user_already_exists' | 'sso_provider_not_found' | 'saml_metadata_fetch_failed' | 'saml_idp_already_exists' | 'sso_domain_already_exists' | 'saml_entity_id_mismatch' | 'conflict' | 'provider_disabled' | 'user_sso_managed' | 'reauthentication_needed' | 'same_password' | 'reauthentication_not_valid' | 'otp_expired' | 'otp_disabled' | 'identity_not_found' | 'weak_password' | 'over_request_rate_limit' | 'over_email_send_rate_limit' | 'over_sms_send_rate_limit' | 'bad_code_verifier' | 'anonymous_provider_disabled' | 'hook_timeout' | 'hook_timeout_after_retry' | 'hook_payload_over_size_limit' | 'hook_payload_invalid_content_type' | 'request_timeout' | 'mfa_phone_enroll_not_enabled' | 'mfa_phone_verify_not_enabled' | 'mfa_totp_enroll_not_enabled' | 'mfa_totp_verify_not_enabled' | 'mfa_webauthn_enroll_not_enabled' | 'mfa_webauthn_verify_not_enabled' | 'mfa_verified_factor_exists' | 'invalid_credentials' | 'email_address_not_authorized' | 'email_address_invalid';
@@ -1,2 +1,2 @@
1
- export declare const version = "2.75.1-canary.3";
1
+ export declare const version = "2.75.1-canary.4";
2
2
  //# sourceMappingURL=version.d.ts.map
@@ -4,5 +4,5 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.75.1-canary.3';
7
+ export const version = '2.75.1-canary.4';
8
8
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@supabase/gotrue-js",
3
- "version": "2.75.1-canary.3",
3
+ "version": "2.75.1-canary.4",
4
4
  "private": false,
5
- "description": "Official client library for Supabase Auth",
5
+ "description": "Official SDK for Supabase Auth",
6
6
  "keywords": [
7
7
  "auth",
8
8
  "supabase",
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * Known error codes. Note that the server may also return other error codes
3
- * not included in this list (if the client library is older than the version
3
+ * not included in this list (if the SDK is older than the version
4
4
  * on the server).
5
5
  */
6
6
  export type ErrorCode =
@@ -4,4 +4,4 @@
4
4
  // - Debugging and support (identifying which version is running)
5
5
  // - Telemetry and logging (version reporting in errors/analytics)
6
6
  // - Ensuring build artifacts match the published package version
7
- export const version = '2.75.1-canary.3'
7
+ export const version = '2.75.1-canary.4'