@supabase/gotrue-js 2.119.0-canary.2 → 2.119.0-canary.3
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/dist/main/GoTrueClient.d.ts +3 -3
- package/dist/main/GoTrueClient.js +5 -5
- package/dist/main/lib/types.d.ts +1 -1
- package/dist/main/lib/version.d.ts +1 -1
- package/dist/main/lib/version.js +1 -1
- package/dist/module/GoTrueClient.d.ts +3 -3
- package/dist/module/GoTrueClient.js +5 -5
- package/dist/module/lib/types.d.ts +1 -1
- package/dist/module/lib/version.d.ts +1 -1
- package/dist/module/lib/version.js +1 -1
- package/dist/tsconfig.module.tsbuildinfo +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/GoTrueClient.ts +5 -5
- package/src/lib/types.ts +1 -1
- package/src/lib/version.ts +1 -1
|
@@ -458,7 +458,7 @@ export default class GoTrueClient {
|
|
|
458
458
|
* Be aware that you may get back an error message that will not distinguish
|
|
459
459
|
* between the cases where the account does not exist or that the
|
|
460
460
|
* email/phone and password combination is wrong or that the account can only
|
|
461
|
-
* be accessed via social
|
|
461
|
+
* be accessed via social sign-in.
|
|
462
462
|
*
|
|
463
463
|
* @category Auth
|
|
464
464
|
*
|
|
@@ -592,7 +592,7 @@ export default class GoTrueClient {
|
|
|
592
592
|
* @category Auth
|
|
593
593
|
*
|
|
594
594
|
* @remarks
|
|
595
|
-
* - This method is used for signing in using [
|
|
595
|
+
* - This method is used for signing in using [social sign-in (OAuth) providers](/docs/guides/auth/social-sign-in).
|
|
596
596
|
* - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
|
|
597
597
|
*
|
|
598
598
|
* @example Sign in using a third-party provider
|
|
@@ -1045,7 +1045,7 @@ export default class GoTrueClient {
|
|
|
1045
1045
|
*
|
|
1046
1046
|
* Be aware that you may get back an error message that will not distinguish
|
|
1047
1047
|
* between the cases where the account does not exist or, that the account
|
|
1048
|
-
* can only be accessed via social
|
|
1048
|
+
* can only be accessed via social sign-in.
|
|
1049
1049
|
*
|
|
1050
1050
|
* Do note that you will need to configure a Whatsapp sender on Twilio
|
|
1051
1051
|
* if you are using phone sign in with the 'whatsapp' channel. The whatsapp
|
|
@@ -800,7 +800,7 @@ class GoTrueClient {
|
|
|
800
800
|
* Be aware that you may get back an error message that will not distinguish
|
|
801
801
|
* between the cases where the account does not exist or that the
|
|
802
802
|
* email/phone and password combination is wrong or that the account can only
|
|
803
|
-
* be accessed via social
|
|
803
|
+
* be accessed via social sign-in.
|
|
804
804
|
*
|
|
805
805
|
* @category Auth
|
|
806
806
|
*
|
|
@@ -987,7 +987,7 @@ class GoTrueClient {
|
|
|
987
987
|
* @category Auth
|
|
988
988
|
*
|
|
989
989
|
* @remarks
|
|
990
|
-
* - This method is used for signing in using [
|
|
990
|
+
* - This method is used for signing in using [social sign-in (OAuth) providers](/docs/guides/auth/social-sign-in).
|
|
991
991
|
* - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
|
|
992
992
|
*
|
|
993
993
|
* @example Sign in using a third-party provider
|
|
@@ -1783,7 +1783,7 @@ class GoTrueClient {
|
|
|
1783
1783
|
*
|
|
1784
1784
|
* Be aware that you may get back an error message that will not distinguish
|
|
1785
1785
|
* between the cases where the account does not exist or, that the account
|
|
1786
|
-
* can only be accessed via social
|
|
1786
|
+
* can only be accessed via social sign-in.
|
|
1787
1787
|
*
|
|
1788
1788
|
* Do note that you will need to configure a Whatsapp sender on Twilio
|
|
1789
1789
|
* if you are using phone sign in with the 'whatsapp' channel. The whatsapp
|
|
@@ -3541,9 +3541,9 @@ class GoTrueClient {
|
|
|
3541
3541
|
* ```
|
|
3542
3542
|
*
|
|
3543
3543
|
* @exampleDescription Store OAuth provider tokens on sign in
|
|
3544
|
-
* When using [OAuth (
|
|
3544
|
+
* When using [OAuth (social sign-in)](/docs/guides/auth/social-sign-in) you sometimes wish to get access to the provider's access token and refresh token, in order to call provider APIs in the name of the user.
|
|
3545
3545
|
*
|
|
3546
|
-
* For example, if you are using [Sign in with Google](/docs/guides/auth/social-
|
|
3546
|
+
* For example, if you are using [Sign in with Google](/docs/guides/auth/social-sign-in/auth-google) you may want to use the provider token to call Google APIs on behalf of the user. Supabase Auth does not keep track of the provider access and refresh token, but does return them for you once, immediately after sign in. You can use the `onAuthStateChange` method to listen for the presence of the provider tokens and store them in local storage. You can further send them to your server's APIs for use on the backend.
|
|
3547
3547
|
*
|
|
3548
3548
|
* Finally, make sure you remove them from local storage on the `SIGNED_OUT` event. If the OAuth provider supports token revocation, make sure you call those APIs either from the frontend or schedule them to be called on the backend.
|
|
3549
3549
|
*
|
package/dist/main/lib/types.d.ts
CHANGED
|
@@ -1737,7 +1737,7 @@ export interface GoTrueMFAApi {
|
|
|
1737
1737
|
* Returns the Authenticator Assurance Level (AAL) for the active session.
|
|
1738
1738
|
*
|
|
1739
1739
|
* - `aal1` (or `null`) means that the user's identity has been verified only
|
|
1740
|
-
* with a conventional login (email+password, OTP, magic link, social
|
|
1740
|
+
* with a conventional login (email+password, OTP, magic link, social sign-in,
|
|
1741
1741
|
* etc.).
|
|
1742
1742
|
* - `aal2` means that the user's identity has been verified both with a conventional login and at least one MFA factor.
|
|
1743
1743
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.119.0-canary.
|
|
1
|
+
export declare const version = "2.119.0-canary.3";
|
|
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.119.0-canary.
|
|
10
|
+
exports.version = '2.119.0-canary.3';
|
|
11
11
|
//# sourceMappingURL=version.js.map
|
|
@@ -458,7 +458,7 @@ export default class GoTrueClient {
|
|
|
458
458
|
* Be aware that you may get back an error message that will not distinguish
|
|
459
459
|
* between the cases where the account does not exist or that the
|
|
460
460
|
* email/phone and password combination is wrong or that the account can only
|
|
461
|
-
* be accessed via social
|
|
461
|
+
* be accessed via social sign-in.
|
|
462
462
|
*
|
|
463
463
|
* @category Auth
|
|
464
464
|
*
|
|
@@ -592,7 +592,7 @@ export default class GoTrueClient {
|
|
|
592
592
|
* @category Auth
|
|
593
593
|
*
|
|
594
594
|
* @remarks
|
|
595
|
-
* - This method is used for signing in using [
|
|
595
|
+
* - This method is used for signing in using [social sign-in (OAuth) providers](/docs/guides/auth/social-sign-in).
|
|
596
596
|
* - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
|
|
597
597
|
*
|
|
598
598
|
* @example Sign in using a third-party provider
|
|
@@ -1045,7 +1045,7 @@ export default class GoTrueClient {
|
|
|
1045
1045
|
*
|
|
1046
1046
|
* Be aware that you may get back an error message that will not distinguish
|
|
1047
1047
|
* between the cases where the account does not exist or, that the account
|
|
1048
|
-
* can only be accessed via social
|
|
1048
|
+
* can only be accessed via social sign-in.
|
|
1049
1049
|
*
|
|
1050
1050
|
* Do note that you will need to configure a Whatsapp sender on Twilio
|
|
1051
1051
|
* if you are using phone sign in with the 'whatsapp' channel. The whatsapp
|
|
@@ -797,7 +797,7 @@ class GoTrueClient {
|
|
|
797
797
|
* Be aware that you may get back an error message that will not distinguish
|
|
798
798
|
* between the cases where the account does not exist or that the
|
|
799
799
|
* email/phone and password combination is wrong or that the account can only
|
|
800
|
-
* be accessed via social
|
|
800
|
+
* be accessed via social sign-in.
|
|
801
801
|
*
|
|
802
802
|
* @category Auth
|
|
803
803
|
*
|
|
@@ -984,7 +984,7 @@ class GoTrueClient {
|
|
|
984
984
|
* @category Auth
|
|
985
985
|
*
|
|
986
986
|
* @remarks
|
|
987
|
-
* - This method is used for signing in using [
|
|
987
|
+
* - This method is used for signing in using [social sign-in (OAuth) providers](/docs/guides/auth/social-sign-in).
|
|
988
988
|
* - It works by redirecting your application to the provider's authorization screen, before bringing back the user to your app.
|
|
989
989
|
*
|
|
990
990
|
* @example Sign in using a third-party provider
|
|
@@ -1780,7 +1780,7 @@ class GoTrueClient {
|
|
|
1780
1780
|
*
|
|
1781
1781
|
* Be aware that you may get back an error message that will not distinguish
|
|
1782
1782
|
* between the cases where the account does not exist or, that the account
|
|
1783
|
-
* can only be accessed via social
|
|
1783
|
+
* can only be accessed via social sign-in.
|
|
1784
1784
|
*
|
|
1785
1785
|
* Do note that you will need to configure a Whatsapp sender on Twilio
|
|
1786
1786
|
* if you are using phone sign in with the 'whatsapp' channel. The whatsapp
|
|
@@ -3538,9 +3538,9 @@ class GoTrueClient {
|
|
|
3538
3538
|
* ```
|
|
3539
3539
|
*
|
|
3540
3540
|
* @exampleDescription Store OAuth provider tokens on sign in
|
|
3541
|
-
* When using [OAuth (
|
|
3541
|
+
* When using [OAuth (social sign-in)](/docs/guides/auth/social-sign-in) you sometimes wish to get access to the provider's access token and refresh token, in order to call provider APIs in the name of the user.
|
|
3542
3542
|
*
|
|
3543
|
-
* For example, if you are using [Sign in with Google](/docs/guides/auth/social-
|
|
3543
|
+
* For example, if you are using [Sign in with Google](/docs/guides/auth/social-sign-in/auth-google) you may want to use the provider token to call Google APIs on behalf of the user. Supabase Auth does not keep track of the provider access and refresh token, but does return them for you once, immediately after sign in. You can use the `onAuthStateChange` method to listen for the presence of the provider tokens and store them in local storage. You can further send them to your server's APIs for use on the backend.
|
|
3544
3544
|
*
|
|
3545
3545
|
* Finally, make sure you remove them from local storage on the `SIGNED_OUT` event. If the OAuth provider supports token revocation, make sure you call those APIs either from the frontend or schedule them to be called on the backend.
|
|
3546
3546
|
*
|
|
@@ -1737,7 +1737,7 @@ export interface GoTrueMFAApi {
|
|
|
1737
1737
|
* Returns the Authenticator Assurance Level (AAL) for the active session.
|
|
1738
1738
|
*
|
|
1739
1739
|
* - `aal1` (or `null`) means that the user's identity has been verified only
|
|
1740
|
-
* with a conventional login (email+password, OTP, magic link, social
|
|
1740
|
+
* with a conventional login (email+password, OTP, magic link, social sign-in,
|
|
1741
1741
|
* etc.).
|
|
1742
1742
|
* - `aal2` means that the user's identity has been verified both with a conventional login and at least one MFA factor.
|
|
1743
1743
|
*
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const version = "2.119.0-canary.
|
|
1
|
+
export declare const version = "2.119.0-canary.3";
|
|
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.119.0-canary.
|
|
7
|
+
export const version = '2.119.0-canary.3';
|
|
8
8
|
//# sourceMappingURL=version.js.map
|