@supabase/gotrue-js 2.75.1-canary.3 → 2.75.1-canary.5
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 +28 -12
- package/dist/main/lib/error-codes.d.ts +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/lib/error-codes.d.ts +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/package.json +3 -3
- package/src/lib/error-codes.ts +1 -1
- package/src/lib/version.ts +1 -1
package/README.md
CHANGED
|
@@ -1,18 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
+
[](https://github.com/supabase/supabase-js/actions?query=branch%3Amaster)
|
|
27
|
+
[](https://www.npmjs.com/package/@supabase/auth-js)
|
|
28
|
+
[](#license)
|
|
7
29
|
[](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.
|
|
35
|
-
- `signIn()`: https://supabase.
|
|
36
|
-
- `signOut()`: https://supabase.
|
|
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
|
|
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.
|
|
1
|
+
export declare const version = "2.75.1-canary.5";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/dist/main/lib/version.js
CHANGED
|
@@ -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.
|
|
10
|
+
exports.version = '2.75.1-canary.5';
|
|
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
|
|
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.
|
|
1
|
+
export declare const version = "2.75.1-canary.5";
|
|
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.
|
|
7
|
+
export const version = '2.75.1-canary.5';
|
|
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
|
+
"version": "2.75.1-canary.5",
|
|
4
4
|
"private": false,
|
|
5
|
-
"description": "Official
|
|
5
|
+
"description": "Official SDK for Supabase Auth",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"auth",
|
|
8
8
|
"supabase",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"clean": "rimraf dist docs",
|
|
30
30
|
"coverage": "echo \"run npm test\"",
|
|
31
31
|
"build:node18": "npm run clean && npm run build:main && npm run build:module",
|
|
32
|
-
"build": "npm run clean &&
|
|
32
|
+
"build": "npm run clean && npm run build:main && npm run build:module",
|
|
33
33
|
"build:main": "tsc -p tsconfig.json",
|
|
34
34
|
"build:module": "tsc -p tsconfig.module.json",
|
|
35
35
|
"test:auth": "npm run test:clean && npm run test:infra && npm run test:suite && npm run test:clean",
|
package/src/lib/error-codes.ts
CHANGED
|
@@ -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
|
|
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 =
|
package/src/lib/version.ts
CHANGED
|
@@ -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.
|
|
7
|
+
export const version = '2.75.1-canary.5'
|