-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get the user details for a given user
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .getUser(access_token)
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-inviteuserbyemail.mdx b/web/docs/gotrue/client/api-inviteuserbyemail.mdx
new file mode 100644
index 00000000000..d72cea44d90
--- /dev/null
+++ b/web/docs/gotrue/client/api-inviteuserbyemail.mdx
@@ -0,0 +1,84 @@
+---
+id: api-inviteuserbyemail
+title: "api.inviteUserByEmail"
+slug: api-inviteuserbyemail
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends an invite link to an email address.
+
+
+
+## Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Send a user an invite link to sign up via email
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .inviteUserByEmail('example@email.com')
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-refreshaccesstoken.mdx b/web/docs/gotrue/client/api-refreshaccesstoken.mdx
index 13a3c760749..19cc0c094aa 100644
--- a/web/docs/gotrue/client/api-refreshaccesstoken.mdx
+++ b/web/docs/gotrue/client/api-refreshaccesstoken.mdx
@@ -36,4 +36,49 @@ A valid refresh token that was returned on login.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Get a new access and refresh token using a valied refresh_token
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .refreshAccessToken(refresh_token)
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-resetpasswordforemail.mdx b/web/docs/gotrue/client/api-resetpasswordforemail.mdx
index 1aa696e9311..dcde2b3a4ce 100644
--- a/web/docs/gotrue/client/api-resetpasswordforemail.mdx
+++ b/web/docs/gotrue/client/api-resetpasswordforemail.mdx
@@ -36,4 +36,49 @@ The email address of the user.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Send a user a password reset email
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .resetPasswordForEmail('example@email.com')
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-sendmagiclinkemail.mdx b/web/docs/gotrue/client/api-sendmagiclinkemail.mdx
new file mode 100644
index 00000000000..80739f44269
--- /dev/null
+++ b/web/docs/gotrue/client/api-sendmagiclinkemail.mdx
@@ -0,0 +1,84 @@
+---
+id: api-sendmagiclinkemail
+title: "api.sendMagicLinkEmail"
+slug: api-sendmagiclinkemail
+---
+
+import Tabs from '@theme/Tabs';
+import TabItem from '@theme/TabItem';
+
+Sends a magic login link to an email address.
+
+
+
+## Parameters
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Send user a passwordless login link via email
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .sendMagicLinkEmail('example@email.com')
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-signinwithemail.mdx b/web/docs/gotrue/client/api-signinwithemail.mdx
index ed1b259c622..119089f6114 100644
--- a/web/docs/gotrue/client/api-signinwithemail.mdx
+++ b/web/docs/gotrue/client/api-signinwithemail.mdx
@@ -57,4 +57,49 @@ The password of the user.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign up a new user with email
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .signIpWithEmail('example@email.com', 'example-password')
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-signout.mdx b/web/docs/gotrue/client/api-signout.mdx
index 3bdeadffd9d..f27abf15321 100644
--- a/web/docs/gotrue/client/api-signout.mdx
+++ b/web/docs/gotrue/client/api-signout.mdx
@@ -36,4 +36,49 @@ A valid, logged-in JWT.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Sign a user out
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .signOut(access_token)
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/api-updateuser.mdx b/web/docs/gotrue/client/api-updateuser.mdx
index 0805fde7604..0d03e6e8ceb 100644
--- a/web/docs/gotrue/client/api-updateuser.mdx
+++ b/web/docs/gotrue/client/api-updateuser.mdx
@@ -57,4 +57,49 @@ The data you want to update.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Update user info that Gotrue holds (also used for setting new passwords)
+
+
+
+
+
+
+
+```js
+const { error, data } = await api
+ .updateUser(access_token, { password : 'Why Shinji?' })
+ ```
+
+
+
+
+
+
+```
+Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/initializing.mdx b/web/docs/gotrue/client/initializing.mdx
index 81cd1185b72..7354025487a 100644
--- a/web/docs/gotrue/client/initializing.mdx
+++ b/web/docs/gotrue/client/initializing.mdx
@@ -9,7 +9,39 @@ import TabItem from '@theme/TabItem';
Create a new client for use in the browser.
+
+
+
+```js
+import { GoTrueClient } from '@supabase/gotrue-js'
+
+const auth = new GoTrueClient({
+ url: "https://your-gotrue-url.com",
+ headers: {
+ apikey:
+ "",
+ Authorization:
+ "Bearer ",
+ },
+})
+```
+
+
+
+
+
+```py
+# Not yet implemented
+```
+
+
+
+
+
## Parameters
@@ -40,28 +72,7 @@ No description provided.
- url
-
-
- optional
-
-
- |
-
-
-
-
-The URL of the GoTrue server.
-
-
-
-
-
-
-
-
-
- persistSession
+ autoRefreshToken
optional
@@ -72,49 +83,7 @@ The URL of the GoTrue server.
-Set to "true" if you want to automatically save the user session into local storage.
-
-
-
-
-
-
-
-
-
- localStorage
-
-
- optional
-
-
- Storage
-
-
-
-
-No description provided.
-
-
-
-
-
-
-
-
-
- headers
-
-
- optional
-
-
- |
-
-
-
-
-Any additional headers to send to the GoTrue server.
+Set to "true" if you want to automatically refresh the token before expiring.
@@ -145,7 +114,49 @@ Set to "true" if you want to automatically detects OAuth grants in the URL and s
- autoRefreshToken
+ headers
+
+
+ optional
+
+
+ |
+
+
+
+
+Any additional headers to send to the GoTrue server.
+
+
+
+
+
+
+
+
+
+ localStorage
+
+
+ optional
+
+
+ Storage
+
+
+
+
+No description provided.
+
+
+
+
+
+
+
+
+
+ persistSession
optional
@@ -156,7 +167,28 @@ Set to "true" if you want to automatically detects OAuth grants in the URL and s
-Set to "true" if you want to automatically refresh the token before expiring.
+Set to "true" if you want to automatically save the user session into local storage.
+
+
+
+
+
+
+
+
+
+ url
+
+
+ optional
+
+
+ |
+
+
+
+
+The URL of the GoTrue server.
@@ -166,4 +198,57 @@ Set to "true" if you want to automatically refresh the token before expiring.
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+## Examples
+
+### Initialize a GoTrue client
+
+
+
+
+
+
+
+```js
+import { GoTrueClient } from '@supabase/gotrue-js'
+
+const auth = new GoTrueClient({
+ url: "https://your-gotrue-url.com",
+ headers: {
+ apikey:
+ "",
+ Authorization:
+ "Bearer ",
+ },
+})
+```
+
+
+
+
+
+```py
+# Not yet implemented
+```
+
+
+
+
+
\ No newline at end of file
diff --git a/web/docs/gotrue/client/signin.mdx b/web/docs/gotrue/client/signin.mdx
index c73fc1d77c2..6557ca5d09e 100644
--- a/web/docs/gotrue/client/signin.mdx
+++ b/web/docs/gotrue/client/signin.mdx
@@ -17,10 +17,16 @@ Log in an existing user, or login via a third-party provider.
```js
+// with email and password
const { user, error } = await auth.signIn({
email: 'example@email.com',
password: 'example-password',
})
+
+// send magic link (passwordless link)
+const { user, error } = await auth.signIn({
+ email: 'example@email.com',
+})
```
@@ -65,18 +71,18 @@ The user login details.
- provider
+ email
optional
- Provider
+ |
-One of the providers supported by GoTrue.
+The user's email address.
@@ -107,18 +113,18 @@ The user's password.
- email
+ provider
optional
- |
+ Provider
-The user's email address.
+One of the providers supported by GoTrue.
@@ -157,10 +163,16 @@ The user's email address.
```js
+// with email and password
const { user, error } = await auth.signIn({
email: 'example@email.com',
password: 'example-password',
})
+
+// send magic link (passwordless link)
+const { user, error } = await auth.signIn({
+ email: 'example@email.com',
+})
```
diff --git a/web/docs/gotrue/client/signup.mdx b/web/docs/gotrue/client/signup.mdx
index 009736fce3c..0df405d03b7 100644
--- a/web/docs/gotrue/client/signup.mdx
+++ b/web/docs/gotrue/client/signup.mdx
@@ -37,27 +37,6 @@ The user login details.
diff --git a/web/docs/gotrue/server/about.md b/web/docs/gotrue/server/about.md
index 3aa87e4afd6..dd0488c4336 100644
--- a/web/docs/gotrue/server/about.md
+++ b/web/docs/gotrue/server/about.md
@@ -233,6 +233,10 @@ Email subject to use for signup confirmation. Defaults to `Confirm Your Signup`.
Email subject to use for password reset. Defaults to `Reset Your Password`.
+`MAILER_SUBJECTS_MAGIC_LINK` - `string`
+
+Email subject to use for magic link email. Defaults to `Your Magic Link`.
+
`MAILER_SUBJECTS_EMAIL_CHANGE` - `string`
Email subject to use for email change confirmation. Defaults to `Confirm Email Change`.
@@ -279,6 +283,20 @@ Default Content (if template is unavailable):
Reset Password
```
+`MAILER_TEMPLATES_MAGIC_LINK` - `string`
+
+URL path to an email template to use when sending magic link.
+`SiteURL`, `Email`, and `ConfirmationURL` variables are available.
+
+Default Content (if template is unavailable):
+
+```html
+Magic Link
+
+Follow this link to login:
+Log In
+```
+
`MAILER_TEMPLATES_EMAIL_CHANGE` - `string`
URL path to an email template to use when confirming the change of an email address.
@@ -297,7 +315,7 @@ Default Content (if template is unavailable):
GoTrue exposes the following endpoints:
-* **GET /settings**
+### **GET /settings**
Returns the publicly available settings for this gotrue instance.
@@ -314,7 +332,7 @@ GoTrue exposes the following endpoints:
}
```
-* **POST /signup**
+### **POST /signup**
Register a new user with an email and password.
@@ -337,9 +355,17 @@ GoTrue exposes the following endpoints:
}
```
-* **POST /invite**
+### **POST /invite**
Invites a new user with an email.
+ This endpoint requires the `service_role` or `supabase_admin` JWT set as an Auth Bearer header:
+
+ e.g.
+ ```json
+ headers: {
+ "Authorization" : "Bearer eyJhbGciOiJI...M3A90LCkxxtX9oNP9KZO"
+ }
+ ```
```json
{
@@ -360,16 +386,15 @@ GoTrue exposes the following endpoints:
}
```
-* **POST /verify**
+### **POST /verify**
- Verify a registration or a password recovery. Type can be `signup` or `recovery`
+ Verify a registration or a password recovery. Type can be `signup` or `recovery` or `invite`
and the `token` is a token returned from either `/signup` or `/recover`.
```json
{
"type": "signup",
- "token": "confirmation-code-delivered-in-email",
- "password": "12345abcdef" // only required if responding to an 'invite'
+ "token": "confirmation-code-delivered-in-email"
}
```
@@ -382,34 +407,62 @@ GoTrue exposes the following endpoints:
"access_token": "jwt-token-representing-the-user",
"token_type": "bearer",
"expires_in": 3600,
- "refresh_token": "a-refresh-token"
+ "refresh_token": "a-refresh-token",
+ "type": "signup | recovery | invite"
}
```
-* **GET /verify**
+### **GET /verify**
- Verify a registration or a password recovery. Type can be `signup` or `recovery`
- and the `token` is a token returned from either `/signup` or `/recover`.
+ Verify a registration or a password recovery. Type can be `signup` or `recovery` or `magiclink` or `invite`
+ and the `token` is a token returned from either `/signup` or `/recover` or `/magiclink`.
+ query params:
```json
{
"type": "signup",
"token": "confirmation-code-delivered-in-email",
}
```
-
- `password` is required for signup verification if no existing password exists.
User will be logged in and redirected to:
```json
- SITE_URL/#access_token=jwt-token-representing-the-user&token_type=bearer&expires_in=3600&refresh_token=a-refresh-token
+ SITE_URL/#access_token=jwt-token-representing-the-user&token_type=bearer&expires_in=3600&refresh_token=a-refresh-token&type=invite
```
-* **POST /recover**
+ Your app should detect the query params in the fragment and use them to set the session (supabase-js does this automatically)
+
+ You can use the `type` param to redirect the user to a password set form in the case of `invite` or `recovery`,
+ or show an account confirmed/welcome message in the case of `signup`, or direct them to some additional onboarding flow
+
+### **POST /magiclink**
+
+ Magic Link. Will deliver a link (e.g. `/verify?type=magiclink&token=fgtyuf68ddqdaDd`) to the user based on
+ email address which they can use to redeem an access_token.
+
+ By default Magic Links can only be sent once every 60 seconds
+
+ ```json
+ {
+ "email": "email@example.com"
+ }
+ ```
+
+ Returns:
+
+ ```json
+ {}
+ ```
+
+ when clicked the magic link will redirect the user to `#access_token=x&refresh_token=y&expires_in=z&token_type=bearer&type=magiclink` (see `/verify` above)
+
+### **POST /recover**
Password recovery. Will deliver a password recovery mail to the user based on
email address.
+
+ By default recovery links can only be sent once every 60 seconds
```json
{
@@ -423,7 +476,7 @@ GoTrue exposes the following endpoints:
{}
```
-* **POST /token**
+### **POST /token**
This is an OAuth2 endpoint that currently implements
the password and refresh_token grant types
@@ -469,7 +522,7 @@ GoTrue exposes the following endpoints:
}
```
-* **GET /user**
+### **GET /user**
Get the JSON object for the logged in user (requires authentication)
@@ -485,7 +538,7 @@ GoTrue exposes the following endpoints:
}
```
-* **PUT /user**
+### **PUT /user**
Update a user (Requires authentication). Apart from changing email/password, this
method can be used to set custom user data.
@@ -514,7 +567,7 @@ GoTrue exposes the following endpoints:
}
```
-* **POST /logout**
+### **POST /logout**
Logout a user (Requires authentication).
@@ -522,7 +575,7 @@ GoTrue exposes the following endpoints:
will still be valid for stateless auth until they expires.
-* **GET /authorize**
+### **GET /authorize**
Get access_token from external oauth provider
@@ -533,12 +586,13 @@ GoTrue exposes the following endpoints:
Redirects to provider and then to `/callback`
-* **GET /callback**
+### **GET /callback**
External provider should redirect to here
Redirects to `#access_token=&refresh_token=&expires_in=3600&provider=`
+
## Pre-built
- [Docker](https://hub.docker.com/repository/docker/supabase/gotrue)
diff --git a/web/docs/guides/auth.mdx b/web/docs/guides/auth.mdx
index e46bf379f2c..af2940bfa29 100644
--- a/web/docs/guides/auth.mdx
+++ b/web/docs/guides/auth.mdx
@@ -32,7 +32,7 @@ You can enable providers by navigating to Authentication > Settings > External O
To fetch these you need to:
1. Generate `Client ID` and `Secret` ([google](https://console.developers.google.com/apis/credentials), [github](https://github.com/settings/applications/new), [gitlab](https://gitlab.com/oauth/applications), [bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/use-oauth-on-bitbucket-cloud/))
-2. Enter Authorized Redirect URI: `http://.supabase.co/auth/v1/callback` on provider dashboard
+2. Enter Authorized Redirect URI: `https://.supabase.co/auth/v1/callback` on provider dashboard
### Row Level Security
@@ -98,6 +98,25 @@ Even though Supabase provides an `auth.users` table, it is helpful to also creat
For security purposes, the `auth` schema is not exposed on the auto-generated API. Created a `public.users` table allows you to interact via the Supabase client -
especially useful for cross-table queries.
+Pro tip: if you want to add a row to your `public.users` table every time a user signs up, you can use triggers. For example:
+
+```sql
+-- inserts a row into public.users
+create function public.handle_new_user()
+returns trigger as $$
+begin
+ insert into public.users (id)
+ values (new.id);
+ return new;
+end;
+$$ language plpgsql security definer;
+
+-- trigger the function every time a user is created
+create trigger on_auth_user_created
+ after insert on auth.users
+ for each row execute procedure public.handle_new_user();
+```
+
### Policies are like where clauses.
Policies are easy to understand once you get the hang of them. You can just think of the as adding a `WHERE` clause to every query. For example if you had a policy like this:
diff --git a/web/docusaurus.config.js b/web/docusaurus.config.js
index 732435ca2cc..39e811ea373 100755
--- a/web/docusaurus.config.js
+++ b/web/docusaurus.config.js
@@ -134,11 +134,11 @@ module.exports = {
},
],
},
- {
- to: '/showcase',
- label: 'Showcase',
- position: 'right',
- },
+ // {
+ // to: '/showcase',
+ // label: 'Showcase',
+ // position: 'right',
+ // },
// { to: '/docs/pricing', label: 'Pricing', position: 'right' },
{ href: 'https://app.supabase.io', label: 'Login', position: 'right' },
],
@@ -187,6 +187,10 @@ module.exports = {
label: 'Support',
to: '/docs/support',
},
+ {
+ label: 'System Status',
+ to: 'https://status.supabase.io/',
+ },
],
},
{
diff --git a/web/sidebar_spec_gotrue.js b/web/sidebar_spec_gotrue.js
index 22919f4c5bb..85e9f5f2f4a 100644
--- a/web/sidebar_spec_gotrue.js
+++ b/web/sidebar_spec_gotrue.js
@@ -15,7 +15,7 @@ module.exports = {
{
type: 'category',
label: 'General functions',
- items: ['gotrue/client/api-signupwithemail', 'gotrue/client/api-signinwithemail', 'gotrue/client/api-resetpasswordforemail', 'gotrue/client/api-signout', 'gotrue/client/api-getuser', 'gotrue/client/api-updateuser', 'gotrue/client/api-refreshaccesstoken'],
+ items: ['gotrue/client/api-signupwithemail', 'gotrue/client/api-signinwithemail', 'gotrue/client/api-sendmagiclinkemail', 'gotrue/client/api-inviteuserbyemail', 'gotrue/client/api-resetpasswordforemail', 'gotrue/client/api-signout', 'gotrue/client/api-getuser', 'gotrue/client/api-updateuser', 'gotrue/client/api-refreshaccesstoken'],
collapsed: false,
}
],
diff --git a/web/sidebars.js b/web/sidebars.js
index 8dad15a19c5..7df5148978e 100755
--- a/web/sidebars.js
+++ b/web/sidebars.js
@@ -27,7 +27,7 @@ module.exports = {
type: 'category',
label: 'See Also',
collapsed: false,
- items: ['guides/examples', 'pricing', 'support', 'handbook/contributing'],
+ items: ['guides/examples', 'pricing', 'support', 'handbook/contributing', 'company/terms'],
},
// Handbook: ['handbook/introduction', 'handbook/contributing'],
],
diff --git a/web/spec/combined.json b/web/spec/combined.json
index 29c43f1e3ef..5bf154d9441 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -809,38 +809,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 197
- ]
+ "children": [197]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 191,
- 195,
- 196,
- 194,
- 193,
- 192,
- 199,
- 198
- ]
+ "children": [191, 195, 196, 194, 193, 192, 199, 198]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 230,
- 225,
- 223,
- 221,
- 218,
- 204,
- 216,
- 213,
- 208
- ]
+ "children": [230, 225, 223, 221, 218, 204, 216, 213, 208]
}
],
"sources": [
@@ -966,13 +945,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 235,
- 237,
- 238,
- 236,
- 234
- ]
+ "children": [235, 237, 238, 236, 234]
}
],
"sources": [
@@ -992,16 +965,12 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 190
- ]
+ "children": [190]
},
{
"title": "Object literals",
"kind": 2097152,
- "children": [
- 233
- ]
+ "children": [233]
}
],
"sources": [
@@ -1109,9 +1078,7 @@
{
"title": "Functions",
"kind": 64,
- "children": [
- 241
- ]
+ "children": [241]
}
],
"sources": [
@@ -1404,14 +1371,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 36,
- 35,
- 31,
- 38,
- 37,
- 30
- ]
+ "children": [36, 35, 31, 38, 37, 30]
}
],
"sources": [
@@ -1754,9 +1714,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 97
- ]
+ "children": [97]
}
]
}
@@ -1833,10 +1791,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 99,
- 100
- ]
+ "children": [99, 100]
}
],
"sources": [
@@ -2039,10 +1994,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 113,
- 114
- ]
+ "children": [113, 114]
}
],
"sources": [
@@ -2191,11 +2143,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 83,
- 85,
- 84
- ]
+ "children": [83, 85, 84]
}
],
"sources": [
@@ -2315,10 +2263,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 78,
- 79
- ]
+ "children": [78, 79]
}
],
"sources": [
@@ -2488,11 +2433,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 60,
- 61,
- 62
- ]
+ "children": [60, 61, 62]
}
],
"sources": [
@@ -2654,13 +2595,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 64,
- 68,
- 66,
- 67,
- 65
- ]
+ "children": [64, 68, 66, 67, 65]
}
],
"sources": [
@@ -2754,9 +2689,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 104
- ]
+ "children": [104]
}
],
"sources": [
@@ -2885,10 +2818,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 50,
- 51
- ]
+ "children": [50, 51]
}
],
"sources": [
@@ -2999,11 +2929,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 53,
- 55,
- 54
- ]
+ "children": [53, 55, 54]
}
],
"sources": [
@@ -3170,11 +3096,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 90,
- 92,
- 91
- ]
+ "children": [90, 92, 91]
}
],
"sources": [
@@ -3323,11 +3245,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 72,
- 74,
- 73
- ]
+ "children": [72, 74, 73]
}
],
"sources": [
@@ -3364,37 +3282,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 26
- ]
+ "children": [26]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 41,
- 42,
- 40,
- 39,
- 44,
- 43,
- 45
- ]
+ "children": [41, 42, 40, 39, 44, 43, 45]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 93,
- 105,
- 80,
- 75,
- 56,
- 101,
- 46,
- 86,
- 69
- ]
+ "children": [93, 105, 80, 75, 56, 101, 46, 86, 69]
}
],
"sources": [
@@ -3416,9 +3314,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 25
- ]
+ "children": [25]
}
],
"sources": [
@@ -3633,12 +3529,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 140,
- 145,
- 144,
- 146
- ]
+ "children": [140, 145, 144, 146]
}
],
"sources": [
@@ -4154,10 +4045,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 163,
- 162
- ]
+ "children": [163, 162]
}
],
"sources": [
@@ -4796,34 +4684,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 135
- ]
+ "children": [135]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 134,
- 133,
- 176,
- 171,
- 169,
- 175,
- 170
- ]
+ "children": [134, 133, 176, 171, 169, 175, 170]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 167,
- 157,
- 147,
- 154,
- 177,
- 164
- ]
+ "children": [167, 157, 147, 154, 177, 164]
}
],
"sources": [
@@ -4869,9 +4740,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 131
- ]
+ "children": [131]
}
],
"sources": [
@@ -5134,24 +5003,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 118
- ]
+ "children": [118]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 117
- ]
+ "children": [117]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 123,
- 127
- ]
+ "children": [123, 127]
}
],
"sources": [
@@ -5167,9 +5029,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 116
- ]
+ "children": [116]
}
],
"sources": [
@@ -5224,9 +5084,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 2
- ]
+ "children": [2]
}
],
"sources": [
@@ -5283,9 +5141,7 @@
{
"title": "Functions",
"kind": 64,
- "children": [
- 247
- ]
+ "children": [247]
}
],
"sources": [
@@ -5542,13 +5398,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 12,
- 14,
- 8,
- 13,
- 7
- ]
+ "children": [12, 14, 8, 13, 7]
}
],
"sources": [
@@ -5742,14 +5592,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 18,
- 19,
- 22,
- 23,
- 20,
- 21
- ]
+ "children": [18, 19, 22, 23, 20, 21]
}
],
"sources": [
@@ -5767,10 +5610,7 @@
{
"title": "Type aliases",
"kind": 4194304,
- "children": [
- 5,
- 15
- ]
+ "children": [5, 15]
}
],
"sources": [
@@ -5786,16 +5626,7 @@
{
"title": "Modules",
"kind": 1,
- "children": [
- 189,
- 240,
- 24,
- 130,
- 115,
- 1,
- 246,
- 4
- ]
+ "children": [189, 240, 24, 130, 115, 1, 246, 4]
}
]
},
@@ -5814,7 +5645,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/GoTrueApi.ts",
"children": [
{
"id": 69,
@@ -5947,10 +5778,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 80,
- 79
- ]
+ "children": [80, 79]
}
],
"sources": [
@@ -6067,7 +5895,7 @@
}
},
{
- "id": 110,
+ "id": 124,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -6076,7 +5904,7 @@
},
"signatures": [
{
- "id": 111,
+ "id": 125,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -6088,7 +5916,7 @@
},
"parameters": [
{
- "id": 112,
+ "id": 126,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -6114,13 +5942,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 93,
+ "line": 119,
"character": 19
}
]
},
{
- "id": 113,
+ "id": 127,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -6129,7 +5957,7 @@
},
"signatures": [
{
- "id": 114,
+ "id": 128,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -6141,7 +5969,7 @@
},
"parameters": [
{
- "id": 115,
+ "id": 129,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -6166,7 +5994,7 @@
{
"type": "reflection",
"declaration": {
- "id": 116,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6175,7 +6003,7 @@
},
"children": [
{
- "id": 117,
+ "id": 131,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6185,7 +6013,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 106,
+ "line": 132,
"character": 19
}
],
@@ -6195,7 +6023,7 @@
}
},
{
- "id": 118,
+ "id": 132,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6205,7 +6033,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 106,
+ "line": 132,
"character": 26
}
],
@@ -6220,10 +6048,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 117,
- 118
- ]
+ "children": [131, 132]
}
]
}
@@ -6231,7 +6056,7 @@
{
"type": "reflection",
"declaration": {
- "id": 119,
+ "id": 133,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6240,7 +6065,7 @@
},
"children": [
{
- "id": 120,
+ "id": 134,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6250,7 +6075,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 108,
+ "line": 134,
"character": 19
}
],
@@ -6261,7 +6086,7 @@
"defaultValue": "null"
},
{
- "id": 121,
+ "id": 135,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6271,7 +6096,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 108,
+ "line": 134,
"character": 32
}
],
@@ -6285,10 +6110,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 120,
- 121
- ]
+ "children": [134, 135]
}
]
}
@@ -6303,13 +6125,168 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 101,
+ "line": 127,
"character": 15
}
]
},
{
- "id": 132,
+ "id": 105,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 106,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 107,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 108,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 109,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 56
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 57
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 111,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 74
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [109, 111]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 50
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 146,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -6318,7 +6295,7 @@
},
"signatures": [
{
- "id": 133,
+ "id": 147,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -6330,7 +6307,7 @@
},
"parameters": [
{
- "id": 134,
+ "id": 148,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -6355,7 +6332,7 @@
{
"type": "reflection",
"declaration": {
- "id": 135,
+ "id": 149,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6364,7 +6341,7 @@
},
"children": [
{
- "id": 136,
+ "id": 150,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6374,7 +6351,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 139,
+ "line": 165,
"character": 19
}
],
@@ -6384,7 +6361,7 @@
}
},
{
- "id": 137,
+ "id": 151,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6394,7 +6371,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 139,
+ "line": 165,
"character": 26
}
],
@@ -6409,10 +6386,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 136,
- 137
- ]
+ "children": [150, 151]
}
]
}
@@ -6420,7 +6394,7 @@
{
"type": "reflection",
"declaration": {
- "id": 138,
+ "id": 152,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6429,7 +6403,7 @@
},
"children": [
{
- "id": 139,
+ "id": 153,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -6439,7 +6413,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 141,
+ "line": 167,
"character": 19
}
],
@@ -6450,7 +6424,7 @@
"defaultValue": "null"
},
{
- "id": 140,
+ "id": 154,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6460,7 +6434,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 141,
+ "line": 167,
"character": 32
}
],
@@ -6474,10 +6448,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 139,
- 140
- ]
+ "children": [153, 154]
}
]
}
@@ -6492,13 +6463,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 132,
+ "line": 158,
"character": 26
}
]
},
{
- "id": 98,
+ "id": 112,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -6507,7 +6478,7 @@
},
"signatures": [
{
- "id": 99,
+ "id": 113,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -6517,6 +6488,161 @@
"comment": {
"shortText": "Sends a reset request to an email address."
},
+ "parameters": [
+ {
+ "id": 114,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 115,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 116,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 60
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 117,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 61
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 118,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 78
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [116, 118]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 54
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 29
+ }
+ ]
+ },
+ {
+ "id": 98,
+ "name": "sendMagicLinkEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 99,
+ "name": "sendMagicLinkEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sends a magic login link to an email address."
+ },
"parameters": [
{
"id": 100,
@@ -6561,7 +6687,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 60
+ "character": 57
}
],
"type": {
@@ -6581,7 +6707,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 61
+ "character": 58
}
]
}
@@ -6605,7 +6731,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 78
+ "character": 75
}
],
"type": {
@@ -6627,17 +6753,14 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 102,
- 104
- ]
+ "children": [102, 104]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 54
+ "character": 51
}
]
}
@@ -6651,7 +6774,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 29
+ "character": 26
}
]
},
@@ -6787,10 +6910,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 96,
- 97
- ]
+ "children": [96, 97]
}
],
"sources": [
@@ -6816,7 +6936,7 @@
]
},
{
- "id": 105,
+ "id": 119,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -6825,7 +6945,7 @@
},
"signatures": [
{
- "id": 106,
+ "id": 120,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -6837,7 +6957,7 @@
},
"parameters": [
{
- "id": 107,
+ "id": 121,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -6859,7 +6979,7 @@
{
"type": "reflection",
"declaration": {
- "id": 108,
+ "id": 122,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -6868,7 +6988,7 @@
},
"children": [
{
- "id": 109,
+ "id": 123,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -6878,7 +6998,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 45
}
],
@@ -6901,15 +7021,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 109
- ]
+ "children": [123]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 38
}
]
@@ -6923,7 +7041,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 15
}
]
@@ -7060,10 +7178,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 89,
- 90
- ]
+ "children": [89, 90]
}
],
"sources": [
@@ -7089,7 +7204,7 @@
]
},
{
- "id": 122,
+ "id": 136,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -7098,7 +7213,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 137,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -7110,7 +7225,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 138,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -7126,7 +7241,7 @@
}
},
{
- "id": 125,
+ "id": 139,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -7152,7 +7267,7 @@
{
"type": "reflection",
"declaration": {
- "id": 126,
+ "id": 140,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7161,7 +7276,7 @@
},
"children": [
{
- "id": 127,
+ "id": 141,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7171,7 +7286,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 122,
+ "line": 148,
"character": 19
}
],
@@ -7181,7 +7296,7 @@
}
},
{
- "id": 128,
+ "id": 142,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7191,7 +7306,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 122,
+ "line": 148,
"character": 26
}
],
@@ -7206,10 +7321,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 127,
- 128
- ]
+ "children": [141, 142]
}
]
}
@@ -7217,7 +7329,7 @@
{
"type": "reflection",
"declaration": {
- "id": 129,
+ "id": 143,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7226,7 +7338,7 @@
},
"children": [
{
- "id": 130,
+ "id": 144,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7236,7 +7348,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 124,
+ "line": 150,
"character": 19
}
],
@@ -7247,7 +7359,7 @@
"defaultValue": "null"
},
{
- "id": 131,
+ "id": 145,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7257,7 +7369,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 124,
+ "line": 150,
"character": 32
}
],
@@ -7271,10 +7383,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 130,
- 131
- ]
+ "children": [144, 145]
}
]
}
@@ -7289,7 +7398,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 117,
+ "line": 143,
"character": 18
}
]
@@ -7299,31 +7408,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 75
- ]
+ "children": [75]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 71,
- 70
- ]
+ "children": [71, 70]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 110,
- 113,
- 132,
- 98,
- 91,
- 105,
- 84,
- 122
- ]
+ "children": [124, 127, 105, 146, 112, 98, 91, 119, 84, 136]
}
],
"sources": [
@@ -7339,9 +7434,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 69
- ]
+ "children": [69]
}
],
"sources": [
@@ -7353,17 +7446,17 @@
]
},
{
- "id": 180,
+ "id": 194,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 181,
+ "id": 195,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -7372,7 +7465,7 @@
},
"children": [
{
- "id": 189,
+ "id": 203,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -7384,7 +7477,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 204,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -7396,7 +7489,7 @@
},
"parameters": [
{
- "id": 191,
+ "id": 205,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -7406,7 +7499,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 206,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7415,7 +7508,7 @@
},
"children": [
{
- "id": 199,
+ "id": 213,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -7452,7 +7545,7 @@
}
},
{
- "id": 198,
+ "id": 212,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -7489,7 +7582,7 @@
}
},
{
- "id": 194,
+ "id": 208,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -7517,7 +7610,7 @@
{
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 209,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7526,7 +7619,7 @@
},
"indexSignature": [
{
- "id": 196,
+ "id": 210,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -7535,7 +7628,7 @@
},
"parameters": [
{
- "id": 197,
+ "id": 211,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -7560,7 +7653,7 @@
}
},
{
- "id": 201,
+ "id": 215,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -7584,7 +7677,7 @@
}
},
{
- "id": 200,
+ "id": 214,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -7621,7 +7714,7 @@
}
},
{
- "id": 193,
+ "id": 207,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -7658,14 +7751,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 199,
- 198,
- 194,
- 201,
- 200,
- 193
- ]
+ "children": [213, 212, 208, 215, 214, 207]
}
],
"sources": [
@@ -7681,7 +7767,7 @@
],
"type": {
"type": "reference",
- "id": 181,
+ "id": 195,
"name": "GoTrueClient"
}
}
@@ -7695,7 +7781,7 @@
]
},
{
- "id": 182,
+ "id": 196,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -7719,7 +7805,7 @@
}
},
{
- "id": 185,
+ "id": 199,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -7740,7 +7826,7 @@
}
},
{
- "id": 184,
+ "id": 198,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -7774,7 +7860,7 @@
}
},
{
- "id": 183,
+ "id": 197,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -7808,7 +7894,7 @@
}
},
{
- "id": 187,
+ "id": 201,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -7829,7 +7915,7 @@
}
},
{
- "id": 186,
+ "id": 200,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -7850,7 +7936,7 @@
}
},
{
- "id": 188,
+ "id": 202,
"name": "stateChangeEmmitters",
"kind": 1024,
"kindString": "Property",
@@ -7883,7 +7969,7 @@
"defaultValue": "new Map()"
},
{
- "id": 307,
+ "id": 314,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -7893,7 +7979,7 @@
},
"signatures": [
{
- "id": 308,
+ "id": 315,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -7913,7 +7999,7 @@
{
"type": "reflection",
"declaration": {
- "id": 309,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7922,7 +8008,7 @@
},
"children": [
{
- "id": 310,
+ "id": 317,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7932,7 +8018,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 382,
+ "line": 374,
"character": 21
}
],
@@ -7942,7 +8028,7 @@
}
},
{
- "id": 311,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -7952,7 +8038,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 382,
+ "line": 374,
"character": 28
}
],
@@ -7967,10 +8053,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 310,
- 311
- ]
+ "children": [317, 318]
}
]
}
@@ -7978,7 +8061,7 @@
{
"type": "reflection",
"declaration": {
- "id": 312,
+ "id": 319,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -7987,7 +8070,7 @@
},
"children": [
{
- "id": 313,
+ "id": 320,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -7997,7 +8080,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 385,
+ "line": 377,
"character": 19
}
],
@@ -8008,7 +8091,7 @@
"defaultValue": "null"
},
{
- "id": 314,
+ "id": 321,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8018,7 +8101,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 385,
+ "line": 377,
"character": 32
}
],
@@ -8032,10 +8115,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 313,
- 314
- ]
+ "children": [320, 321]
}
]
}
@@ -8050,13 +8130,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 364,
+ "line": 356,
"character": 33
}
]
},
{
- "id": 271,
+ "id": 278,
"name": "_handeEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8066,7 +8146,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 279,
"name": "_handeEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8075,7 +8155,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 280,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -8088,7 +8168,7 @@
}
},
{
- "id": 274,
+ "id": 281,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -8110,7 +8190,7 @@
{
"type": "reflection",
"declaration": {
- "id": 275,
+ "id": 282,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8119,7 +8199,7 @@
},
"children": [
{
- "id": 276,
+ "id": 283,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8129,7 +8209,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 19
}
],
@@ -8140,7 +8220,7 @@
}
},
{
- "id": 278,
+ "id": 285,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8150,7 +8230,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 43
}
],
@@ -8161,7 +8241,7 @@
"defaultValue": "null"
},
{
- "id": 277,
+ "id": 284,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8171,7 +8251,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 25
}
],
@@ -8187,11 +8267,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 276,
- 278,
- 277
- ]
+ "children": [283, 285, 284]
}
]
}
@@ -8199,7 +8275,7 @@
{
"type": "reflection",
"declaration": {
- "id": 279,
+ "id": 286,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8208,7 +8284,7 @@
},
"children": [
{
- "id": 280,
+ "id": 287,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8218,7 +8294,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 19
}
],
@@ -8229,7 +8305,7 @@
"defaultValue": "null"
},
{
- "id": 282,
+ "id": 289,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8239,7 +8315,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 44
}
],
@@ -8249,7 +8325,7 @@
}
},
{
- "id": 281,
+ "id": 288,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8259,7 +8335,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 31
}
],
@@ -8274,11 +8350,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 280,
- 282,
- 281
- ]
+ "children": [287, 289, 288]
}
]
}
@@ -8293,13 +8365,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 277,
+ "line": 269,
"character": 33
}
]
},
{
- "id": 283,
+ "id": 290,
"name": "_handeProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -8309,7 +8381,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 291,
"name": "_handeProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -8318,7 +8390,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 292,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -8338,7 +8410,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 293,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8347,7 +8419,7 @@
},
"children": [
{
- "id": 289,
+ "id": 296,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8357,7 +8429,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 34
}
],
@@ -8368,7 +8440,7 @@
"defaultValue": "null"
},
{
- "id": 291,
+ "id": 298,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8378,7 +8450,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 59
}
],
@@ -8389,7 +8461,7 @@
"defaultValue": "null"
},
{
- "id": 287,
+ "id": 294,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -8399,7 +8471,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 23
}
],
@@ -8410,7 +8482,7 @@
}
},
{
- "id": 288,
+ "id": 295,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -8420,7 +8492,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 28
}
],
@@ -8430,7 +8502,7 @@
}
},
{
- "id": 290,
+ "id": 297,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8440,7 +8512,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 46
}
],
@@ -8455,13 +8527,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 289,
- 291,
- 287,
- 288,
- 290
- ]
+ "children": [296, 298, 294, 295, 297]
}
]
}
@@ -8469,7 +8535,7 @@
{
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 299,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8478,7 +8544,7 @@
},
"children": [
{
- "id": 293,
+ "id": 300,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8488,7 +8554,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 24
}
],
@@ -8499,7 +8565,7 @@
"defaultValue": "null"
},
{
- "id": 295,
+ "id": 302,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8509,7 +8575,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 49
}
],
@@ -8519,7 +8585,7 @@
}
},
{
- "id": 294,
+ "id": 301,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -8529,7 +8595,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 36
}
],
@@ -8544,11 +8610,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 293,
- 295,
- 294
- ]
+ "children": [300, 302, 301]
}
]
}
@@ -8560,13 +8622,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 285,
"character": 30
}
]
},
{
- "id": 315,
+ "id": 322,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -8576,7 +8638,7 @@
},
"signatures": [
{
- "id": 316,
+ "id": 323,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -8585,7 +8647,7 @@
},
"parameters": [
{
- "id": 317,
+ "id": 324,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -8608,13 +8670,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 381,
"character": 31
}
]
},
{
- "id": 299,
+ "id": 306,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -8624,7 +8686,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 307,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -8633,7 +8695,7 @@
},
"parameters": [
{
- "id": 301,
+ "id": 308,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -8647,7 +8709,7 @@
}
},
{
- "id": 302,
+ "id": 309,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -8669,13 +8731,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 323,
+ "line": 315,
"character": 25
}
]
},
{
- "id": 305,
+ "id": 312,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -8685,7 +8747,7 @@
},
"signatures": [
{
- "id": 306,
+ "id": 313,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -8707,13 +8769,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 336,
+ "line": 328,
"character": 31
}
]
},
{
- "id": 303,
+ "id": 310,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -8723,7 +8785,7 @@
},
"signatures": [
{
- "id": 304,
+ "id": 311,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -8745,13 +8807,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 330,
+ "line": 322,
"character": 30
}
]
},
{
- "id": 296,
+ "id": 303,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -8761,7 +8823,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 304,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -8770,7 +8832,7 @@
},
"parameters": [
{
- "id": 298,
+ "id": 305,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -8793,13 +8855,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 309,
+ "line": 301,
"character": 22
}
]
},
{
- "id": 249,
+ "id": 256,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -8808,7 +8870,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 257,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -8820,7 +8882,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 258,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -8838,7 +8900,7 @@
{
"type": "reflection",
"declaration": {
- "id": 252,
+ "id": 259,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8847,7 +8909,7 @@
},
"children": [
{
- "id": 253,
+ "id": 260,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -8861,7 +8923,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 200,
+ "line": 192,
"character": 16
}
],
@@ -8888,9 +8950,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 253
- ]
+ "children": [260]
}
]
}
@@ -8905,7 +8965,7 @@
{
"type": "reflection",
"declaration": {
- "id": 254,
+ "id": 261,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -8914,7 +8974,7 @@
},
"children": [
{
- "id": 255,
+ "id": 262,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -8924,7 +8984,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 20
}
],
@@ -8944,7 +9004,7 @@
}
},
{
- "id": 256,
+ "id": 263,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -8954,7 +9014,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 43
}
],
@@ -8977,16 +9037,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 255,
- 256
- ]
+ "children": [262, 263]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 14
}
]
@@ -9000,13 +9057,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 199,
+ "line": 191,
"character": 25
}
]
},
{
- "id": 261,
+ "id": 268,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -9015,7 +9072,7 @@
},
"signatures": [
{
- "id": 262,
+ "id": 269,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -9028,7 +9085,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 270,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -9038,7 +9095,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 264,
+ "id": 271,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9047,7 +9104,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 272,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -9056,7 +9113,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 273,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -9070,7 +9127,7 @@
}
},
{
- "id": 267,
+ "id": 274,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -9102,7 +9159,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 250,
"character": 13
}
]
@@ -9113,7 +9170,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 268,
+ "id": 275,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9122,7 +9179,7 @@
},
"children": [
{
- "id": 269,
+ "id": 276,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9132,7 +9189,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 11
}
],
@@ -9152,7 +9209,7 @@
}
},
{
- "id": 270,
+ "id": 277,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9162,7 +9219,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 39
}
],
@@ -9185,16 +9242,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 269,
- 270
- ]
+ "children": [276, 277]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 4
}
]
@@ -9205,13 +9259,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 257,
+ "line": 249,
"character": 19
}
]
},
{
- "id": 236,
+ "id": 243,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -9220,7 +9274,7 @@
},
"signatures": [
{
- "id": 237,
+ "id": 244,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -9236,7 +9290,7 @@
{
"type": "reflection",
"declaration": {
- "id": 238,
+ "id": 245,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9245,7 +9299,7 @@
},
"children": [
{
- "id": 239,
+ "id": 246,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9255,7 +9309,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 147,
"character": 8
}
],
@@ -9275,7 +9329,7 @@
}
},
{
- "id": 241,
+ "id": 248,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9285,7 +9339,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 157,
+ "line": 149,
"character": 9
}
],
@@ -9304,7 +9358,7 @@
}
},
{
- "id": 240,
+ "id": 247,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9314,7 +9368,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 148,
"character": 8
}
],
@@ -9338,17 +9392,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 239,
- 241,
- 240
- ]
+ "children": [246, 248, 247]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 146,
"character": 34
}
]
@@ -9362,13 +9412,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 146,
"character": 22
}
]
},
{
- "id": 231,
+ "id": 241,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -9377,7 +9427,7 @@
},
"signatures": [
{
- "id": 232,
+ "id": 242,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -9388,107 +9438,31 @@
"shortText": "Returns the session data, if there is an active session."
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 233,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
},
- "children": [
- {
- "id": 234,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 27,
- "name": "Session"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 235,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 42
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 234,
- 235
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 12
- }
- ]
- }
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 141,
+ "line": 139,
"character": 9
}
]
},
{
- "id": 212,
+ "id": 226,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -9497,7 +9471,7 @@
},
"signatures": [
{
- "id": 213,
+ "id": 227,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -9509,7 +9483,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 228,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -9522,7 +9496,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 215,
+ "id": 229,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9531,7 +9505,7 @@
},
"children": [
{
- "id": 216,
+ "id": 230,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -9564,7 +9538,7 @@
}
},
{
- "id": 217,
+ "id": 231,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -9597,7 +9571,7 @@
}
},
{
- "id": 218,
+ "id": 232,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9626,11 +9600,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 216,
- 217,
- 218
- ]
+ "children": [230, 231, 232]
}
],
"sources": [
@@ -9650,7 +9620,7 @@
{
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 233,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9659,7 +9629,7 @@
},
"children": [
{
- "id": 220,
+ "id": 234,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -9689,7 +9659,7 @@
}
},
{
- "id": 224,
+ "id": 238,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9718,7 +9688,7 @@
}
},
{
- "id": 222,
+ "id": 236,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -9740,7 +9710,7 @@
}
},
{
- "id": 223,
+ "id": 237,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -9770,7 +9740,7 @@
}
},
{
- "id": 221,
+ "id": 235,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -9804,13 +9774,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 220,
- 224,
- 222,
- 223,
- 221
- ]
+ "children": [234, 238, 236, 237, 235]
}
],
"sources": [
@@ -9836,7 +9800,7 @@
]
},
{
- "id": 257,
+ "id": 264,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -9845,7 +9809,7 @@
},
"signatures": [
{
- "id": 258,
+ "id": 265,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -9861,7 +9825,7 @@
{
"type": "reflection",
"declaration": {
- "id": 259,
+ "id": 266,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9870,7 +9834,7 @@
},
"children": [
{
- "id": 260,
+ "id": 267,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -9880,7 +9844,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 34
}
],
@@ -9903,15 +9867,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 260
- ]
+ "children": [267]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 27
}
]
@@ -9925,13 +9887,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 15
}
]
},
{
- "id": 202,
+ "id": 216,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -9940,7 +9902,7 @@
},
"signatures": [
{
- "id": 203,
+ "id": 217,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -9952,7 +9914,7 @@
},
"parameters": [
{
- "id": 204,
+ "id": 218,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -9965,7 +9927,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -9974,7 +9936,7 @@
},
"children": [
{
- "id": 206,
+ "id": 220,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -9997,7 +9959,7 @@
}
},
{
- "id": 207,
+ "id": 221,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -10024,10 +9986,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 206,
- 207
- ]
+ "children": [220, 221]
}
],
"sources": [
@@ -10047,7 +10006,7 @@
{
"type": "reflection",
"declaration": {
- "id": 208,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10056,7 +10015,7 @@
},
"children": [
{
- "id": 209,
+ "id": 223,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10086,7 +10045,7 @@
}
},
{
- "id": 211,
+ "id": 225,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10115,7 +10074,7 @@
}
},
{
- "id": 210,
+ "id": 224,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10149,11 +10108,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 209,
- 211,
- 210
- ]
+ "children": [223, 225, 224]
}
],
"sources": [
@@ -10179,7 +10134,7 @@
]
},
{
- "id": 242,
+ "id": 249,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -10188,7 +10143,7 @@
},
"signatures": [
{
- "id": 243,
+ "id": 250,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -10200,7 +10155,7 @@
},
"parameters": [
{
- "id": 244,
+ "id": 251,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -10220,7 +10175,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 252,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10229,7 +10184,7 @@
},
"children": [
{
- "id": 246,
+ "id": 253,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -10239,7 +10194,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 19
}
],
@@ -10259,7 +10214,7 @@
}
},
{
- "id": 248,
+ "id": 255,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -10269,7 +10224,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 58
}
],
@@ -10288,7 +10243,7 @@
}
},
{
- "id": 247,
+ "id": 254,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -10298,7 +10253,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 38
}
],
@@ -10322,17 +10277,13 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 246,
- 248,
- 247
- ]
+ "children": [253, 255, 254]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 13
}
]
@@ -10346,13 +10297,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 177,
+ "line": 169,
"character": 14
}
]
},
{
- "id": 225,
+ "id": 239,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -10361,7 +10312,7 @@
},
"signatures": [
{
- "id": 226,
+ "id": 240,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -10372,132 +10323,25 @@
"shortText": "Returns the user data, if there is a logged in user."
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 227,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "children": [
- {
- "id": 228,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 33,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 230,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 55
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 229,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 35
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 33,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 228,
- 230,
- 229
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 9
- }
- ]
- }
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 128,
+ "line": 132,
"character": 6
}
]
@@ -10507,44 +10351,34 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 189
- ]
+ "children": [203]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 182,
- 185,
- 184,
- 183,
- 187,
- 186,
- 188
- ]
+ "children": [196, 199, 198, 197, 201, 200, 202]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 307,
- 271,
- 283,
- 315,
- 299,
- 305,
+ 314,
+ 278,
+ 290,
+ 322,
+ 306,
+ 312,
+ 310,
303,
- 296,
+ 256,
+ 268,
+ 243,
+ 241,
+ 226,
+ 264,
+ 216,
249,
- 261,
- 236,
- 231,
- 212,
- 257,
- 202,
- 242,
- 225
+ 239
]
}
],
@@ -10557,7 +10391,7 @@
]
},
{
- "id": 318,
+ "id": 325,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -10566,7 +10400,7 @@
},
"children": [
{
- "id": 320,
+ "id": 327,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -10585,7 +10419,7 @@
"defaultValue": "true"
},
{
- "id": 323,
+ "id": 330,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -10604,7 +10438,7 @@
"defaultValue": "true"
},
{
- "id": 324,
+ "id": 331,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -10619,7 +10453,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 332,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10629,7 +10463,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 322,
+ "id": 329,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -10645,10 +10479,10 @@
"type": "reference",
"name": "Storage"
},
- "defaultValue": "global.localStorage"
+ "defaultValue": "globalThis.localStorage"
},
{
- "id": 321,
+ "id": 328,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -10667,7 +10501,7 @@
"defaultValue": "true"
},
{
- "id": 319,
+ "id": 326,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -10690,14 +10524,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 320,
- 323,
- 324,
- 322,
- 321,
- 319
- ]
+ "children": [327, 330, 331, 329, 328, 326]
}
],
"sources": [
@@ -10717,16 +10544,12 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 181
- ]
+ "children": [195]
},
{
"title": "Object literals",
"kind": 2097152,
- "children": [
- 318
- ]
+ "children": [325]
}
],
"sources": [
@@ -10738,14 +10561,14 @@
]
},
{
- "id": 326,
+ "id": 333,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/index.ts",
"sources": [
{
"fileName": "index.ts",
@@ -10755,17 +10578,17 @@
]
},
{
- "id": 173,
+ "id": 187,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 175,
+ "id": 189,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -10787,7 +10610,7 @@
"defaultValue": "process.env.AUDIENCE || ''"
},
{
- "id": 176,
+ "id": 190,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -10805,7 +10628,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 177,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -10816,7 +10639,7 @@
}
},
{
- "id": 178,
+ "id": 192,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -10847,7 +10670,7 @@
"defaultValue": "process.env.EXPIRY_MARGIN || 60 * 1000"
},
{
- "id": 174,
+ "id": 188,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -10869,7 +10692,7 @@
"defaultValue": "process.env.GOTRUE_URL || 'http://localhost:9999'"
},
{
- "id": 179,
+ "id": 193,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -10895,13 +10718,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 175,
- 176,
- 178,
- 174,
- 179
- ]
+ "children": [189, 190, 192, 188, 193]
}
],
"sources": [
@@ -10920,7 +10737,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/fetch.ts",
"children": [
{
"id": 2,
@@ -11038,10 +10855,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 3,
- 7
- ]
+ "children": [3, 7]
}
],
"sources": [
@@ -11337,19 +11151,12 @@
{
"title": "Interfaces",
"kind": 256,
- "children": [
- 2
- ]
+ "children": [2]
},
{
"title": "Functions",
"kind": 64,
- "children": [
- 12,
- 8,
- 16,
- 21
- ]
+ "children": [12, 8, 16, 21]
}
],
"sources": [
@@ -11361,17 +11168,17 @@
]
},
{
- "id": 141,
+ "id": 155,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 142,
+ "id": 156,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -11380,7 +11187,7 @@
},
"indexSignature": [
{
- "id": 144,
+ "id": 158,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -11389,7 +11196,7 @@
},
"parameters": [
{
- "id": 145,
+ "id": 159,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -11410,7 +11217,7 @@
],
"children": [
{
- "id": 147,
+ "id": 161,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -11419,7 +11226,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 162,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -11428,7 +11235,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 163,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -11443,7 +11250,7 @@
],
"type": {
"type": "reference",
- "id": 142,
+ "id": 156,
"name": "LocalStorage"
}
}
@@ -11457,7 +11264,7 @@
]
},
{
- "id": 146,
+ "id": 160,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -11477,7 +11284,7 @@
}
},
{
- "id": 143,
+ "id": 157,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -11497,7 +11304,7 @@
}
},
{
- "id": 150,
+ "id": 164,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -11506,7 +11313,7 @@
},
"signatures": [
{
- "id": 151,
+ "id": 165,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -11528,7 +11335,7 @@
]
},
{
- "id": 159,
+ "id": 173,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -11537,7 +11344,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 174,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11546,7 +11353,7 @@
},
"parameters": [
{
- "id": 161,
+ "id": 175,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11583,7 +11390,7 @@
]
},
{
- "id": 152,
+ "id": 166,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -11592,7 +11399,7 @@
},
"signatures": [
{
- "id": 153,
+ "id": 167,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -11601,7 +11408,7 @@
},
"parameters": [
{
- "id": 154,
+ "id": 168,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -11638,7 +11445,7 @@
]
},
{
- "id": 162,
+ "id": 176,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -11647,7 +11454,7 @@
},
"signatures": [
{
- "id": 163,
+ "id": 177,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11656,7 +11463,7 @@
},
"parameters": [
{
- "id": 164,
+ "id": 178,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11684,7 +11491,7 @@
]
},
{
- "id": 155,
+ "id": 169,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -11693,7 +11500,7 @@
},
"signatures": [
{
- "id": 156,
+ "id": 170,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -11702,7 +11509,7 @@
},
"parameters": [
{
- "id": 157,
+ "id": 171,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -11715,7 +11522,7 @@
}
},
{
- "id": 158,
+ "id": 172,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -11747,28 +11554,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 147
- ]
+ "children": [161]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 146,
- 143
- ]
+ "children": [160, 157]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 150,
- 159,
- 152,
- 162,
- 155
- ]
+ "children": [164, 173, 166, 176, 169]
}
],
"sources": [
@@ -11786,7 +11582,7 @@
]
},
{
- "id": 169,
+ "id": 183,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -11795,7 +11591,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 184,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -11804,7 +11600,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 185,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -11817,7 +11613,7 @@
}
},
{
- "id": 172,
+ "id": 186,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -11864,7 +11660,7 @@
]
},
{
- "id": 167,
+ "id": 181,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -11874,7 +11670,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 182,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -11896,7 +11692,7 @@
]
},
{
- "id": 165,
+ "id": 179,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -11905,7 +11701,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 180,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -11931,18 +11727,12 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 142
- ]
+ "children": [156]
},
{
"title": "Functions",
"kind": 64,
- "children": [
- 169,
- 167,
- 165
- ]
+ "children": [183, 181, 179]
}
],
"sources": [
@@ -11961,7 +11751,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/types.ts",
"children": [
{
"id": 27,
@@ -12078,13 +11868,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 28,
- 29,
- 30,
- 31,
- 32
- ]
+ "children": [28, 29, 30, 31, 32]
}
],
"sources": [
@@ -12277,11 +12061,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 58,
- 57,
- 63
- ]
+ "children": [58, 57, 63]
}
],
"sources": [
@@ -12392,9 +12172,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 37
- ]
+ "children": [37]
}
],
"sources": [
@@ -12687,18 +12465,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 35,
- 44,
- 47,
- 46,
- 45,
- 34,
- 48,
- 49,
- 50,
- 40
- ]
+ "children": [35, 44, 47, 46, 45, 34, 48, 49, 50, 40]
}
],
"sources": [
@@ -12855,12 +12622,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 55,
- 52,
- 54,
- 53
- ]
+ "children": [55, 52, 54, 53]
}
],
"sources": [
@@ -12946,20 +12708,12 @@
{
"title": "Interfaces",
"kind": 256,
- "children": [
- 27,
- 56,
- 33,
- 51
- ]
+ "children": [27, 56, 33, 51]
},
{
"title": "Type aliases",
"kind": 4194304,
- "children": [
- 67,
- 66
- ]
+ "children": [67, 66]
}
],
"sources": [
@@ -12975,15 +12729,7 @@
{
"title": "Modules",
"kind": 1,
- "children": [
- 68,
- 180,
- 326,
- 173,
- 1,
- 141,
- 26
- ]
+ "children": [68, 194, 333, 187, 1, 155, 26]
}
]
},
@@ -13171,10 +12917,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 332,
- 336
- ]
+ "children": [332, 336]
}
],
"sources": [
@@ -13550,27 +13293,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 327
- ]
+ "children": [327]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 322,
- 326,
- 321
- ]
+ "children": [322, 326, 321]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 337,
- 340,
- 344
- ]
+ "children": [337, 340, 344]
}
],
"sources": [
@@ -13586,9 +13319,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 320
- ]
+ "children": [320]
}
],
"sources": [
@@ -14497,9 +14228,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 184
- ]
+ "children": [184]
}
],
"sources": [
@@ -15099,9 +14828,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 230
- ]
+ "children": [230]
}
],
"sources": [
@@ -15924,11 +15651,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 222,
- 224,
- 223
- ]
+ "children": [222, 224, 223]
}
],
"sources": [
@@ -16183,9 +15906,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 198
- ]
+ "children": [198]
}
],
"sources": [
@@ -16328,9 +16049,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 191
- ]
+ "children": [191]
}
],
"sources": [
@@ -16469,9 +16188,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 237
- ]
+ "children": [237]
}
],
"sources": [
@@ -17133,9 +16850,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 205
- ]
+ "children": [205]
}
],
"sources": [
@@ -17169,20 +16884,12 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 248
- ]
+ "children": [248]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 247,
- 242,
- 240,
- 246,
- 241
- ]
+ "children": [247, 242, 240, 246, 241]
},
{
"title": "Methods",
@@ -17445,23 +17152,17 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 96
- ]
+ "children": [96]
},
{
"title": "Type aliases",
"kind": 4194304,
- "children": [
- 267
- ]
+ "children": [267]
},
{
"title": "Functions",
"kind": 64,
- "children": [
- 263
- ]
+ "children": [263]
}
],
"sources": [
@@ -17648,10 +17349,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 276,
- 280
- ]
+ "children": [276, 280]
}
],
"sources": [
@@ -18105,10 +17803,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 290,
- 289
- ]
+ "children": [290, 289]
}
],
"sources": [
@@ -18575,31 +18270,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 271
- ]
+ "children": [271]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 306,
- 301,
- 299,
- 305,
- 300
- ]
+ "children": [306, 301, 299, 305, 300]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 294,
- 284,
- 281,
- 307,
- 291
- ]
+ "children": [294, 284, 281, 307, 291]
}
],
"sources": [
@@ -18647,9 +18328,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 269
- ]
+ "children": [269]
}
],
"sources": [
@@ -19082,9 +18761,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 62
- ]
+ "children": [62]
}
],
"sources": [
@@ -19266,11 +18943,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 54,
- 56,
- 55
- ]
+ "children": [54, 56, 55]
}
],
"sources": [
@@ -19416,9 +19089,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 69
- ]
+ "children": [69]
}
],
"sources": [
@@ -19807,31 +19478,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 80
- ]
+ "children": [80]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 79,
- 74,
- 72,
- 78,
- 73
- ]
+ "children": [79, 74, 72, 78, 73]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 57,
- 49,
- 63,
- 70,
- 83
- ]
+ "children": [57, 49, 63, 70, 83]
}
],
"sources": [
@@ -19886,9 +19543,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 47
- ]
+ "children": [47]
}
],
"sources": [
@@ -20486,27 +20141,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 31
- ]
+ "children": [31]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 30,
- 25,
- 23,
- 29,
- 24
- ]
+ "children": [30, 25, 23, 29, 24]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 34
- ]
+ "children": [34]
}
],
"sources": [
@@ -20636,12 +20281,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 6,
- 4,
- 5,
- 3
- ]
+ "children": [6, 4, 5, 3]
}
],
"sources": [
@@ -20801,13 +20441,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 13,
- 10,
- 9,
- 11,
- 12
- ]
+ "children": [13, 10, 9, 11, 12]
}
],
"sources": [
@@ -20971,13 +20605,7 @@
{
"title": "Properties",
"kind": 1024,
- "children": [
- 20,
- 17,
- 16,
- 18,
- 19
- ]
+ "children": [20, 17, 16, 18, 19]
}
],
"sources": [
@@ -20993,18 +20621,12 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 21
- ]
+ "children": [21]
},
{
"title": "Interfaces",
"kind": 256,
- "children": [
- 2,
- 7,
- 14
- ]
+ "children": [2, 7, 14]
}
],
"sources": [
@@ -21020,14 +20642,7 @@
{
"title": "Modules",
"kind": 1,
- "children": [
- 319,
- 349,
- 95,
- 268,
- 46,
- 1
- ]
+ "children": [319, 349, 95, 268, 46, 1]
}
]
},
@@ -22254,10 +21869,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 212,
- 211
- ]
+ "children": [212, 211]
}
],
"sources": [
@@ -22948,12 +22560,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 197,
- 198,
- 199,
- 196
- ]
+ "children": [197, 198, 199, 196]
}
],
"sources": [
@@ -22973,9 +22580,7 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 200
- ]
+ "children": [200]
},
{
"title": "Properties",
@@ -23032,9 +22637,7 @@
{
"title": "Object literals",
"kind": 2097152,
- "children": [
- 195
- ]
+ "children": [195]
}
],
"sources": [
@@ -23144,12 +22747,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 294,
- 295,
- 296,
- 293
- ]
+ "children": [294, 295, 296, 293]
}
],
"sources": [
@@ -23498,18 +23096,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 281,
- 280,
- 283,
- 277,
- 279,
- 278,
- 287,
- 282,
- 276,
- 275
- ]
+ "children": [281, 280, 283, 277, 279, 278, 287, 282, 276, 275]
}
],
"sources": [
@@ -23556,24 +23143,17 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 170
- ]
+ "children": [170]
},
{
"title": "Type aliases",
"kind": 4194304,
- "children": [
- 291,
- 273
- ]
+ "children": [291, 273]
},
{
"title": "Functions",
"kind": 64,
- "children": [
- 297
- ]
+ "children": [297]
}
],
"sources": [
@@ -24878,25 +24458,12 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 99
- ]
+ "children": [99]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 92,
- 96,
- 95,
- 101,
- 98,
- 97,
- 102,
- 94,
- 93,
- 100
- ]
+ "children": [92, 96, 95, 101, 98, 97, 102, 94, 93, 100]
},
{
"title": "Methods",
@@ -24939,9 +24506,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 91
- ]
+ "children": [91]
}
],
"sources": [
@@ -25078,13 +24643,7 @@
{
"title": "Enumeration members",
"kind": 16,
- "children": [
- 14,
- 15,
- 16,
- 18,
- 17
- ]
+ "children": [14, 15, 16, 18, 17]
}
],
"sources": [
@@ -25194,13 +24753,7 @@
{
"title": "Enumeration members",
"kind": 16,
- "children": [
- 8,
- 9,
- 10,
- 11,
- 12
- ]
+ "children": [8, 9, 10, 11, 12]
}
],
"sources": [
@@ -25293,12 +24846,7 @@
{
"title": "Enumeration members",
"kind": 16,
- "children": [
- 6,
- 5,
- 3,
- 4
- ]
+ "children": [6, 5, 3, 4]
}
],
"sources": [
@@ -25340,9 +24888,7 @@
{
"title": "Enumeration members",
"kind": 16,
- "children": [
- 20
- ]
+ "children": [20]
}
],
"sources": [
@@ -25424,21 +24970,12 @@
{
"title": "Enumerations",
"kind": 4,
- "children": [
- 13,
- 7,
- 2,
- 19
- ]
+ "children": [13, 7, 2, 19]
},
{
"title": "Variables",
"kind": 32,
- "children": [
- 22,
- 21,
- 23
- ]
+ "children": [22, 21, 23]
}
],
"sources": [
@@ -25724,10 +25261,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 50,
- 49
- ]
+ "children": [50, 49]
}
],
"sources": [
@@ -25816,10 +25350,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 46,
- 45
- ]
+ "children": [46, 45]
}
],
"sources": [
@@ -26174,10 +25705,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 86,
- 85
- ]
+ "children": [86, 85]
}
],
"sources": [
@@ -26436,40 +25964,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 52
- ]
+ "children": [52]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 53,
- 54,
- 55,
- 47,
- 43,
- 42,
- 51,
- 40,
- 56,
- 41
- ]
+ "children": [53, 54, 55, 47, 43, 42, 51, 40, 56, 41]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 77,
- 79,
- 87,
- 81,
- 67,
- 62,
- 65,
- 71,
- 73
- ]
+ "children": [77, 79, 87, 81, 67, 62, 65, 71, 73]
}
],
"sources": [
@@ -26485,9 +25990,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 39
- ]
+ "children": [39]
}
],
"sources": [
@@ -26748,27 +26251,17 @@
{
"title": "Constructors",
"kind": 512,
- "children": [
- 28
- ]
+ "children": [28]
},
{
"title": "Properties",
"kind": 1024,
- "children": [
- 29,
- 26,
- 30,
- 27
- ]
+ "children": [29, 26, 30, 27]
},
{
"title": "Methods",
"kind": 2048,
- "children": [
- 34,
- 36
- ]
+ "children": [34, 36]
}
],
"sources": [
@@ -26784,9 +26277,7 @@
{
"title": "Classes",
"kind": 128,
- "children": [
- 25
- ]
+ "children": [25]
}
],
"sources": [
@@ -27352,12 +26843,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 326,
- 327,
- 328,
- 329
- ]
+ "children": [326, 327, 328, 329]
}
],
"sources": [
@@ -27647,9 +27133,7 @@
{
"title": "Variables",
"kind": 32,
- "children": [
- 340
- ]
+ "children": [340]
}
],
"sources": [
@@ -28396,36 +27880,17 @@
{
"title": "Enumerations",
"kind": 4,
- "children": [
- 300
- ]
+ "children": [300]
},
{
"title": "Type aliases",
"kind": 4194304,
- "children": [
- 324,
- 330
- ]
+ "children": [324, 330]
},
{
"title": "Functions",
"kind": 64,
- "children": [
- 350,
- 334,
- 344,
- 354,
- 378,
- 357,
- 360,
- 363,
- 366,
- 369,
- 372,
- 375,
- 382
- ]
+ "children": [350, 334, 344, 354, 378, 357, 360, 363, 366, 369, 372, 375, 382]
}
],
"sources": [
@@ -28441,15 +27906,7 @@
{
"title": "Modules",
"kind": 1,
- "children": [
- 169,
- 90,
- 385,
- 1,
- 38,
- 24,
- 299
- ]
+ "children": [169, 90, 385, 1, 38, 24, 299]
}
]
}
diff --git a/web/spec/gotrue.json b/web/spec/gotrue.json
index cd2b492a38b..b3df97f0b4b 100644
--- a/web/spec/gotrue.json
+++ b/web/spec/gotrue.json
@@ -13,7 +13,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueApi.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/GoTrueApi.ts",
"children": [
{
"id": 69,
@@ -266,7 +266,7 @@
}
},
{
- "id": 110,
+ "id": 124,
"name": "getUrlForProvider",
"kind": 2048,
"kindString": "Method",
@@ -275,7 +275,7 @@
},
"signatures": [
{
- "id": 111,
+ "id": 125,
"name": "getUrlForProvider",
"kind": 4096,
"kindString": "Call signature",
@@ -287,7 +287,7 @@
},
"parameters": [
{
- "id": 112,
+ "id": 126,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -313,13 +313,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 93,
+ "line": 119,
"character": 19
}
]
},
{
- "id": 113,
+ "id": 127,
"name": "getUser",
"kind": 2048,
"kindString": "Method",
@@ -328,7 +328,7 @@
},
"signatures": [
{
- "id": 114,
+ "id": 128,
"name": "getUser",
"kind": 4096,
"kindString": "Call signature",
@@ -340,7 +340,7 @@
},
"parameters": [
{
- "id": 115,
+ "id": 129,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -365,7 +365,7 @@
{
"type": "reflection",
"declaration": {
- "id": 116,
+ "id": 130,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -374,7 +374,7 @@
},
"children": [
{
- "id": 117,
+ "id": 131,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -384,7 +384,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 106,
+ "line": 132,
"character": 19
}
],
@@ -394,7 +394,7 @@
}
},
{
- "id": 118,
+ "id": 132,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -404,7 +404,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 106,
+ "line": 132,
"character": 26
}
],
@@ -420,8 +420,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 117,
- 118
+ 131,
+ 132
]
}
]
@@ -430,7 +430,7 @@
{
"type": "reflection",
"declaration": {
- "id": 119,
+ "id": 133,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -439,7 +439,7 @@
},
"children": [
{
- "id": 120,
+ "id": 134,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -449,7 +449,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 108,
+ "line": 134,
"character": 19
}
],
@@ -460,7 +460,7 @@
"defaultValue": "null"
},
{
- "id": 121,
+ "id": 135,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -470,7 +470,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 108,
+ "line": 134,
"character": 32
}
],
@@ -485,8 +485,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 120,
- 121
+ 134,
+ 135
]
}
]
@@ -502,13 +502,171 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 101,
+ "line": 127,
"character": 15
}
]
},
{
- "id": 132,
+ "id": 105,
+ "name": "inviteUserByEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 106,
+ "name": "inviteUserByEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sends an invite link to an email address."
+ },
+ "parameters": [
+ {
+ "id": 107,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 108,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 109,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 56
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 110,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 57
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 111,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 74
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 109,
+ 111
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 50
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 78,
+ "character": 25
+ }
+ ]
+ },
+ {
+ "id": 146,
"name": "refreshAccessToken",
"kind": 2048,
"kindString": "Method",
@@ -517,7 +675,7 @@
},
"signatures": [
{
- "id": 133,
+ "id": 147,
"name": "refreshAccessToken",
"kind": 4096,
"kindString": "Call signature",
@@ -529,7 +687,7 @@
},
"parameters": [
{
- "id": 134,
+ "id": 148,
"name": "refreshToken",
"kind": 32768,
"kindString": "Parameter",
@@ -554,7 +712,7 @@
{
"type": "reflection",
"declaration": {
- "id": 135,
+ "id": 149,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -563,7 +721,7 @@
},
"children": [
{
- "id": 136,
+ "id": 150,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -573,7 +731,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 139,
+ "line": 165,
"character": 19
}
],
@@ -583,7 +741,7 @@
}
},
{
- "id": 137,
+ "id": 151,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -593,7 +751,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 139,
+ "line": 165,
"character": 26
}
],
@@ -609,8 +767,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 136,
- 137
+ 150,
+ 151
]
}
]
@@ -619,7 +777,7 @@
{
"type": "reflection",
"declaration": {
- "id": 138,
+ "id": 152,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -628,7 +786,7 @@
},
"children": [
{
- "id": 139,
+ "id": 153,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -638,7 +796,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 141,
+ "line": 167,
"character": 19
}
],
@@ -649,7 +807,7 @@
"defaultValue": "null"
},
{
- "id": 140,
+ "id": 154,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -659,7 +817,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 141,
+ "line": 167,
"character": 32
}
],
@@ -674,8 +832,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 139,
- 140
+ 153,
+ 154
]
}
]
@@ -691,13 +849,13 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 132,
+ "line": 158,
"character": 26
}
]
},
{
- "id": 98,
+ "id": 112,
"name": "resetPasswordForEmail",
"kind": 2048,
"kindString": "Method",
@@ -706,7 +864,7 @@
},
"signatures": [
{
- "id": 99,
+ "id": 113,
"name": "resetPasswordForEmail",
"kind": 4096,
"kindString": "Call signature",
@@ -716,6 +874,164 @@
"comment": {
"shortText": "Sends a reset request to an email address."
},
+ "parameters": [
+ {
+ "id": 114,
+ "name": "email",
+ "kind": 32768,
+ "kindString": "Parameter",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "text": "The email address of the user.\n"
+ },
+ "type": {
+ "type": "intrinsic",
+ "name": "string"
+ }
+ }
+ ],
+ "type": {
+ "type": "reference",
+ "typeArguments": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 115,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "children": [
+ {
+ "id": 116,
+ "name": "data",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 60
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reflection",
+ "declaration": {
+ "id": 117,
+ "name": "__type",
+ "kind": 65536,
+ "kindString": "Type literal",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 61
+ }
+ ]
+ }
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ },
+ {
+ "id": 118,
+ "name": "error",
+ "kind": 32,
+ "kindString": "Variable",
+ "flags": {
+ "isExported": true
+ },
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 78
+ }
+ ],
+ "type": {
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "name": "Error"
+ },
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
+ }
+ }
+ ],
+ "groups": [
+ {
+ "title": "Variables",
+ "kind": 32,
+ "children": [
+ 116,
+ 118
+ ]
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 54
+ }
+ ]
+ }
+ }
+ ],
+ "name": "Promise"
+ }
+ }
+ ],
+ "sources": [
+ {
+ "fileName": "GoTrueApi.ts",
+ "line": 91,
+ "character": 29
+ }
+ ]
+ },
+ {
+ "id": 98,
+ "name": "sendMagicLinkEmail",
+ "kind": 2048,
+ "kindString": "Method",
+ "flags": {
+ "isExported": true
+ },
+ "signatures": [
+ {
+ "id": 99,
+ "name": "sendMagicLinkEmail",
+ "kind": 4096,
+ "kindString": "Call signature",
+ "flags": {
+ "isExported": true
+ },
+ "comment": {
+ "shortText": "Sends a magic login link to an email address."
+ },
"parameters": [
{
"id": 100,
@@ -760,7 +1076,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 60
+ "character": 57
}
],
"type": {
@@ -780,7 +1096,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 61
+ "character": 58
}
]
}
@@ -804,7 +1120,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 78
+ "character": 75
}
],
"type": {
@@ -836,7 +1152,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 54
+ "character": 51
}
]
}
@@ -850,7 +1166,7 @@
{
"fileName": "GoTrueApi.ts",
"line": 65,
- "character": 29
+ "character": 26
}
]
},
@@ -1015,7 +1331,7 @@
]
},
{
- "id": 105,
+ "id": 119,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -1024,7 +1340,7 @@
},
"signatures": [
{
- "id": 106,
+ "id": 120,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -1036,7 +1352,7 @@
},
"parameters": [
{
- "id": 107,
+ "id": 121,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -1058,7 +1374,7 @@
{
"type": "reflection",
"declaration": {
- "id": 108,
+ "id": 122,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1067,7 +1383,7 @@
},
"children": [
{
- "id": 109,
+ "id": 123,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1077,7 +1393,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 45
}
],
@@ -1101,14 +1417,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 109
+ 123
]
}
],
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 38
}
]
@@ -1122,7 +1438,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 78,
+ "line": 104,
"character": 15
}
]
@@ -1288,7 +1604,7 @@
]
},
{
- "id": 122,
+ "id": 136,
"name": "updateUser",
"kind": 2048,
"kindString": "Method",
@@ -1297,7 +1613,7 @@
},
"signatures": [
{
- "id": 123,
+ "id": 137,
"name": "updateUser",
"kind": 4096,
"kindString": "Call signature",
@@ -1309,7 +1625,7 @@
},
"parameters": [
{
- "id": 124,
+ "id": 138,
"name": "jwt",
"kind": 32768,
"kindString": "Parameter",
@@ -1325,7 +1641,7 @@
}
},
{
- "id": 125,
+ "id": 139,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -1351,7 +1667,7 @@
{
"type": "reflection",
"declaration": {
- "id": 126,
+ "id": 140,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1360,7 +1676,7 @@
},
"children": [
{
- "id": 127,
+ "id": 141,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1370,7 +1686,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 122,
+ "line": 148,
"character": 19
}
],
@@ -1380,7 +1696,7 @@
}
},
{
- "id": 128,
+ "id": 142,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1390,7 +1706,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 122,
+ "line": 148,
"character": 26
}
],
@@ -1406,8 +1722,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 127,
- 128
+ 141,
+ 142
]
}
]
@@ -1416,7 +1732,7 @@
{
"type": "reflection",
"declaration": {
- "id": 129,
+ "id": 143,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1425,7 +1741,7 @@
},
"children": [
{
- "id": 130,
+ "id": 144,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -1435,7 +1751,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 124,
+ "line": 150,
"character": 19
}
],
@@ -1446,7 +1762,7 @@
"defaultValue": "null"
},
{
- "id": 131,
+ "id": 145,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -1456,7 +1772,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 124,
+ "line": 150,
"character": 32
}
],
@@ -1471,8 +1787,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 130,
- 131
+ 144,
+ 145
]
}
]
@@ -1488,7 +1804,7 @@
"sources": [
{
"fileName": "GoTrueApi.ts",
- "line": 117,
+ "line": 143,
"character": 18
}
]
@@ -1514,14 +1830,16 @@
"title": "Methods",
"kind": 2048,
"children": [
- 110,
- 113,
- 132,
+ 124,
+ 127,
+ 105,
+ 146,
+ 112,
98,
91,
- 105,
+ 119,
84,
- 122
+ 136
]
}
],
@@ -1552,17 +1870,17 @@
]
},
{
- "id": 180,
+ "id": 194,
"name": "\"GoTrueClient\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/GoTrueClient.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/GoTrueClient.ts",
"children": [
{
- "id": 181,
+ "id": 195,
"name": "GoTrueClient",
"kind": 128,
"kindString": "Class",
@@ -1571,7 +1889,7 @@
},
"children": [
{
- "id": 189,
+ "id": 203,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -1583,7 +1901,7 @@
},
"signatures": [
{
- "id": 190,
+ "id": 204,
"name": "new GoTrueClient",
"kind": 16384,
"kindString": "Constructor signature",
@@ -1595,7 +1913,7 @@
},
"parameters": [
{
- "id": 191,
+ "id": 205,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -1605,7 +1923,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 192,
+ "id": 206,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1614,7 +1932,7 @@
},
"children": [
{
- "id": 199,
+ "id": 213,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -1651,7 +1969,7 @@
}
},
{
- "id": 198,
+ "id": 212,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -1688,7 +2006,7 @@
}
},
{
- "id": 194,
+ "id": 208,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -1716,7 +2034,7 @@
{
"type": "reflection",
"declaration": {
- "id": 195,
+ "id": 209,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -1725,7 +2043,7 @@
},
"indexSignature": [
{
- "id": 196,
+ "id": 210,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -1734,7 +2052,7 @@
},
"parameters": [
{
- "id": 197,
+ "id": 211,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -1759,7 +2077,7 @@
}
},
{
- "id": 201,
+ "id": 215,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -1783,7 +2101,7 @@
}
},
{
- "id": 200,
+ "id": 214,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -1820,7 +2138,7 @@
}
},
{
- "id": 193,
+ "id": 207,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -1858,12 +2176,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 199,
- 198,
- 194,
- 201,
- 200,
- 193
+ 213,
+ 212,
+ 208,
+ 215,
+ 214,
+ 207
]
}
],
@@ -1880,7 +2198,7 @@
],
"type": {
"type": "reference",
- "id": 181,
+ "id": 195,
"name": "GoTrueClient"
}
}
@@ -1894,7 +2212,7 @@
]
},
{
- "id": 182,
+ "id": 196,
"name": "api",
"kind": 1024,
"kindString": "Property",
@@ -1918,7 +2236,7 @@
}
},
{
- "id": 185,
+ "id": 199,
"name": "autoRefreshToken",
"kind": 1024,
"kindString": "Property",
@@ -1939,7 +2257,7 @@
}
},
{
- "id": 184,
+ "id": 198,
"name": "currentSession",
"kind": 1024,
"kindString": "Property",
@@ -1973,7 +2291,7 @@
}
},
{
- "id": 183,
+ "id": 197,
"name": "currentUser",
"kind": 1024,
"kindString": "Property",
@@ -2007,7 +2325,7 @@
}
},
{
- "id": 187,
+ "id": 201,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -2028,7 +2346,7 @@
}
},
{
- "id": 186,
+ "id": 200,
"name": "persistSession",
"kind": 1024,
"kindString": "Property",
@@ -2049,7 +2367,7 @@
}
},
{
- "id": 188,
+ "id": 202,
"name": "stateChangeEmmitters",
"kind": 1024,
"kindString": "Property",
@@ -2082,7 +2400,7 @@
"defaultValue": "new Map()"
},
{
- "id": 307,
+ "id": 314,
"name": "_callRefreshToken",
"kind": 2048,
"kindString": "Method",
@@ -2092,7 +2410,7 @@
},
"signatures": [
{
- "id": 308,
+ "id": 315,
"name": "_callRefreshToken",
"kind": 4096,
"kindString": "Call signature",
@@ -2112,7 +2430,7 @@
{
"type": "reflection",
"declaration": {
- "id": 309,
+ "id": 316,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2121,7 +2439,7 @@
},
"children": [
{
- "id": 310,
+ "id": 317,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2131,7 +2449,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 382,
+ "line": 374,
"character": 21
}
],
@@ -2141,7 +2459,7 @@
}
},
{
- "id": 311,
+ "id": 318,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2151,7 +2469,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 382,
+ "line": 374,
"character": 28
}
],
@@ -2167,8 +2485,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 310,
- 311
+ 317,
+ 318
]
}
]
@@ -2177,7 +2495,7 @@
{
"type": "reflection",
"declaration": {
- "id": 312,
+ "id": 319,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2186,7 +2504,7 @@
},
"children": [
{
- "id": 313,
+ "id": 320,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2196,7 +2514,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 385,
+ "line": 377,
"character": 19
}
],
@@ -2207,7 +2525,7 @@
"defaultValue": "null"
},
{
- "id": 314,
+ "id": 321,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2217,7 +2535,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 385,
+ "line": 377,
"character": 32
}
],
@@ -2232,8 +2550,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 313,
- 314
+ 320,
+ 321
]
}
]
@@ -2249,13 +2567,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 364,
+ "line": 356,
"character": 33
}
]
},
{
- "id": 271,
+ "id": 278,
"name": "_handeEmailSignIn",
"kind": 2048,
"kindString": "Method",
@@ -2265,7 +2583,7 @@
},
"signatures": [
{
- "id": 272,
+ "id": 279,
"name": "_handeEmailSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2274,7 +2592,7 @@
},
"parameters": [
{
- "id": 273,
+ "id": 280,
"name": "email",
"kind": 32768,
"kindString": "Parameter",
@@ -2287,7 +2605,7 @@
}
},
{
- "id": 274,
+ "id": 281,
"name": "password",
"kind": 32768,
"kindString": "Parameter",
@@ -2309,7 +2627,7 @@
{
"type": "reflection",
"declaration": {
- "id": 275,
+ "id": 282,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2318,7 +2636,7 @@
},
"children": [
{
- "id": 276,
+ "id": 283,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2328,7 +2646,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 19
}
],
@@ -2339,7 +2657,7 @@
}
},
{
- "id": 278,
+ "id": 285,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2349,7 +2667,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 43
}
],
@@ -2360,7 +2678,7 @@
"defaultValue": "null"
},
{
- "id": 277,
+ "id": 284,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2370,7 +2688,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 287,
+ "line": 279,
"character": 25
}
],
@@ -2387,9 +2705,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 276,
- 278,
- 277
+ 283,
+ 285,
+ 284
]
}
]
@@ -2398,7 +2716,7 @@
{
"type": "reflection",
"declaration": {
- "id": 279,
+ "id": 286,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2407,7 +2725,7 @@
},
"children": [
{
- "id": 280,
+ "id": 287,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2417,7 +2735,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 19
}
],
@@ -2428,7 +2746,7 @@
"defaultValue": "null"
},
{
- "id": 282,
+ "id": 289,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2438,7 +2756,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 44
}
],
@@ -2448,7 +2766,7 @@
}
},
{
- "id": 281,
+ "id": 288,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2458,7 +2776,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 289,
+ "line": 281,
"character": 31
}
],
@@ -2474,9 +2792,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 280,
- 282,
- 281
+ 287,
+ 289,
+ 288
]
}
]
@@ -2492,13 +2810,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 277,
+ "line": 269,
"character": 33
}
]
},
{
- "id": 283,
+ "id": 290,
"name": "_handeProviderSignIn",
"kind": 2048,
"kindString": "Method",
@@ -2508,7 +2826,7 @@
},
"signatures": [
{
- "id": 284,
+ "id": 291,
"name": "_handeProviderSignIn",
"kind": 4096,
"kindString": "Call signature",
@@ -2517,7 +2835,7 @@
},
"parameters": [
{
- "id": 285,
+ "id": 292,
"name": "provider",
"kind": 32768,
"kindString": "Parameter",
@@ -2537,7 +2855,7 @@
{
"type": "reflection",
"declaration": {
- "id": 286,
+ "id": 293,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2546,7 +2864,7 @@
},
"children": [
{
- "id": 289,
+ "id": 296,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2556,7 +2874,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 34
}
],
@@ -2567,7 +2885,7 @@
"defaultValue": "null"
},
{
- "id": 291,
+ "id": 298,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2577,7 +2895,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 59
}
],
@@ -2588,7 +2906,7 @@
"defaultValue": "null"
},
{
- "id": 287,
+ "id": 294,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -2598,7 +2916,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 23
}
],
@@ -2609,7 +2927,7 @@
}
},
{
- "id": 288,
+ "id": 295,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -2619,7 +2937,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 28
}
],
@@ -2629,7 +2947,7 @@
}
},
{
- "id": 290,
+ "id": 297,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2639,7 +2957,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 301,
+ "line": 293,
"character": 46
}
],
@@ -2655,11 +2973,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 289,
- 291,
- 287,
- 288,
- 290
+ 296,
+ 298,
+ 294,
+ 295,
+ 297
]
}
]
@@ -2668,7 +2986,7 @@
{
"type": "reflection",
"declaration": {
- "id": 292,
+ "id": 299,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -2677,7 +2995,7 @@
},
"children": [
{
- "id": 293,
+ "id": 300,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -2687,7 +3005,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 24
}
],
@@ -2698,7 +3016,7 @@
"defaultValue": "null"
},
{
- "id": 295,
+ "id": 302,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -2708,7 +3026,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 49
}
],
@@ -2718,7 +3036,7 @@
}
},
{
- "id": 294,
+ "id": 301,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -2728,7 +3046,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 305,
+ "line": 297,
"character": 36
}
],
@@ -2744,9 +3062,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 293,
- 295,
- 294
+ 300,
+ 302,
+ 301
]
}
]
@@ -2759,13 +3077,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 293,
+ "line": 285,
"character": 30
}
]
},
{
- "id": 315,
+ "id": 322,
"name": "_notifyAllSubscribers",
"kind": 2048,
"kindString": "Method",
@@ -2775,7 +3093,7 @@
},
"signatures": [
{
- "id": 316,
+ "id": 323,
"name": "_notifyAllSubscribers",
"kind": 4096,
"kindString": "Call signature",
@@ -2784,7 +3102,7 @@
},
"parameters": [
{
- "id": 317,
+ "id": 324,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -2807,13 +3125,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 389,
+ "line": 381,
"character": 31
}
]
},
{
- "id": 299,
+ "id": 306,
"name": "_persistSession",
"kind": 2048,
"kindString": "Method",
@@ -2823,7 +3141,7 @@
},
"signatures": [
{
- "id": 300,
+ "id": 307,
"name": "_persistSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2832,7 +3150,7 @@
},
"parameters": [
{
- "id": 301,
+ "id": 308,
"name": "currentSession",
"kind": 32768,
"kindString": "Parameter",
@@ -2846,7 +3164,7 @@
}
},
{
- "id": 302,
+ "id": 309,
"name": "secondsToExpiry",
"kind": 32768,
"kindString": "Parameter",
@@ -2868,13 +3186,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 323,
+ "line": 315,
"character": 25
}
]
},
{
- "id": 305,
+ "id": 312,
"name": "_recoverSession",
"kind": 2048,
"kindString": "Method",
@@ -2884,7 +3202,7 @@
},
"signatures": [
{
- "id": 306,
+ "id": 313,
"name": "_recoverSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2906,13 +3224,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 336,
+ "line": 328,
"character": 31
}
]
},
{
- "id": 303,
+ "id": 310,
"name": "_removeSession",
"kind": 2048,
"kindString": "Method",
@@ -2922,7 +3240,7 @@
},
"signatures": [
{
- "id": 304,
+ "id": 311,
"name": "_removeSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2944,13 +3262,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 330,
+ "line": 322,
"character": 30
}
]
},
{
- "id": 296,
+ "id": 303,
"name": "_saveSession",
"kind": 2048,
"kindString": "Method",
@@ -2960,7 +3278,7 @@
},
"signatures": [
{
- "id": 297,
+ "id": 304,
"name": "_saveSession",
"kind": 4096,
"kindString": "Call signature",
@@ -2969,7 +3287,7 @@
},
"parameters": [
{
- "id": 298,
+ "id": 305,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -2992,13 +3310,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 309,
+ "line": 301,
"character": 22
}
]
},
{
- "id": 249,
+ "id": 256,
"name": "getSessionFromUrl",
"kind": 2048,
"kindString": "Method",
@@ -3007,7 +3325,7 @@
},
"signatures": [
{
- "id": 250,
+ "id": 257,
"name": "getSessionFromUrl",
"kind": 4096,
"kindString": "Call signature",
@@ -3019,7 +3337,7 @@
},
"parameters": [
{
- "id": 251,
+ "id": 258,
"name": "options",
"kind": 32768,
"kindString": "Parameter",
@@ -3037,7 +3355,7 @@
{
"type": "reflection",
"declaration": {
- "id": 252,
+ "id": 259,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3046,7 +3364,7 @@
},
"children": [
{
- "id": 253,
+ "id": 260,
"name": "storeSession",
"kind": 32,
"kindString": "Variable",
@@ -3060,7 +3378,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 200,
+ "line": 192,
"character": 16
}
],
@@ -3088,7 +3406,7 @@
"title": "Variables",
"kind": 32,
"children": [
- 253
+ 260
]
}
]
@@ -3104,7 +3422,7 @@
{
"type": "reflection",
"declaration": {
- "id": 254,
+ "id": 261,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3113,7 +3431,7 @@
},
"children": [
{
- "id": 255,
+ "id": 262,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3123,7 +3441,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 20
}
],
@@ -3143,7 +3461,7 @@
}
},
{
- "id": 256,
+ "id": 263,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3153,7 +3471,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 43
}
],
@@ -3177,15 +3495,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 255,
- 256
+ 262,
+ 263
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 201,
+ "line": 193,
"character": 14
}
]
@@ -3199,13 +3517,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 199,
+ "line": 191,
"character": 25
}
]
},
{
- "id": 261,
+ "id": 268,
"name": "onAuthStateChange",
"kind": 2048,
"kindString": "Method",
@@ -3214,7 +3532,7 @@
},
"signatures": [
{
- "id": 262,
+ "id": 269,
"name": "onAuthStateChange",
"kind": 4096,
"kindString": "Call signature",
@@ -3227,7 +3545,7 @@
},
"parameters": [
{
- "id": 263,
+ "id": 270,
"name": "callback",
"kind": 32768,
"kindString": "Parameter",
@@ -3237,7 +3555,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 264,
+ "id": 271,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3246,7 +3564,7 @@
},
"signatures": [
{
- "id": 265,
+ "id": 272,
"name": "__call",
"kind": 4096,
"kindString": "Call signature",
@@ -3255,7 +3573,7 @@
},
"parameters": [
{
- "id": 266,
+ "id": 273,
"name": "event",
"kind": 32768,
"kindString": "Parameter",
@@ -3269,7 +3587,7 @@
}
},
{
- "id": 267,
+ "id": 274,
"name": "session",
"kind": 32768,
"kindString": "Parameter",
@@ -3301,7 +3619,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 258,
+ "line": 250,
"character": 13
}
]
@@ -3312,7 +3630,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 268,
+ "id": 275,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3321,7 +3639,7 @@
},
"children": [
{
- "id": 269,
+ "id": 276,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3331,7 +3649,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 11
}
],
@@ -3351,7 +3669,7 @@
}
},
{
- "id": 270,
+ "id": 277,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3361,7 +3679,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 39
}
],
@@ -3385,15 +3703,15 @@
"title": "Variables",
"kind": 32,
"children": [
- 269,
- 270
+ 276,
+ 277
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 259,
+ "line": 251,
"character": 4
}
]
@@ -3404,13 +3722,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 257,
+ "line": 249,
"character": 19
}
]
},
{
- "id": 236,
+ "id": 243,
"name": "refreshSession",
"kind": 2048,
"kindString": "Method",
@@ -3419,7 +3737,7 @@
},
"signatures": [
{
- "id": 237,
+ "id": 244,
"name": "refreshSession",
"kind": 4096,
"kindString": "Call signature",
@@ -3435,7 +3753,7 @@
{
"type": "reflection",
"declaration": {
- "id": 238,
+ "id": 245,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3444,7 +3762,7 @@
},
"children": [
{
- "id": 239,
+ "id": 246,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3454,7 +3772,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 155,
+ "line": 147,
"character": 8
}
],
@@ -3474,7 +3792,7 @@
}
},
{
- "id": 241,
+ "id": 248,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3484,7 +3802,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 157,
+ "line": 149,
"character": 9
}
],
@@ -3503,7 +3821,7 @@
}
},
{
- "id": 240,
+ "id": 247,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -3513,7 +3831,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 156,
+ "line": 148,
"character": 8
}
],
@@ -3538,16 +3856,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 239,
- 241,
- 240
+ 246,
+ 248,
+ 247
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 146,
"character": 34
}
]
@@ -3561,13 +3879,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 154,
+ "line": 146,
"character": 22
}
]
},
{
- "id": 231,
+ "id": 241,
"name": "session",
"kind": 2048,
"kindString": "Method",
@@ -3576,7 +3894,7 @@
},
"signatures": [
{
- "id": 232,
+ "id": 242,
"name": "session",
"kind": 4096,
"kindString": "Call signature",
@@ -3587,107 +3905,31 @@
"shortText": "Returns the session data, if there is an active session."
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 233,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 27,
+ "name": "Session"
},
- "children": [
- {
- "id": 234,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 19
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 27,
- "name": "Session"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 235,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 42
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 234,
- 235
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 141,
- "character": 12
- }
- ]
- }
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 141,
+ "line": 139,
"character": 9
}
]
},
{
- "id": 212,
+ "id": 226,
"name": "signIn",
"kind": 2048,
"kindString": "Method",
@@ -3696,7 +3938,7 @@
},
"signatures": [
{
- "id": 213,
+ "id": 227,
"name": "signIn",
"kind": 4096,
"kindString": "Call signature",
@@ -3708,7 +3950,7 @@
},
"parameters": [
{
- "id": 214,
+ "id": 228,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -3721,7 +3963,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 215,
+ "id": 229,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3730,7 +3972,7 @@
},
"children": [
{
- "id": 216,
+ "id": 230,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -3763,7 +4005,7 @@
}
},
{
- "id": 217,
+ "id": 231,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -3796,7 +4038,7 @@
}
},
{
- "id": 218,
+ "id": 232,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3826,9 +4068,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 216,
- 217,
- 218
+ 230,
+ 231,
+ 232
]
}
],
@@ -3849,7 +4091,7 @@
{
"type": "reflection",
"declaration": {
- "id": 219,
+ "id": 233,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -3858,7 +4100,7 @@
},
"children": [
{
- "id": 220,
+ "id": 234,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -3888,7 +4130,7 @@
}
},
{
- "id": 224,
+ "id": 238,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -3917,7 +4159,7 @@
}
},
{
- "id": 222,
+ "id": 236,
"name": "provider",
"kind": 32,
"kindString": "Variable",
@@ -3939,7 +4181,7 @@
}
},
{
- "id": 223,
+ "id": 237,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -3969,7 +4211,7 @@
}
},
{
- "id": 221,
+ "id": 235,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4004,11 +4246,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 220,
- 224,
- 222,
- 223,
- 221
+ 234,
+ 238,
+ 236,
+ 237,
+ 235
]
}
],
@@ -4035,7 +4277,7 @@
]
},
{
- "id": 257,
+ "id": 264,
"name": "signOut",
"kind": 2048,
"kindString": "Method",
@@ -4044,7 +4286,7 @@
},
"signatures": [
{
- "id": 258,
+ "id": 265,
"name": "signOut",
"kind": 4096,
"kindString": "Call signature",
@@ -4060,7 +4302,7 @@
{
"type": "reflection",
"declaration": {
- "id": 259,
+ "id": 266,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4069,7 +4311,7 @@
},
"children": [
{
- "id": 260,
+ "id": 267,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4079,7 +4321,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 34
}
],
@@ -4103,14 +4345,14 @@
"title": "Variables",
"kind": 32,
"children": [
- 260
+ 267
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 27
}
]
@@ -4124,13 +4366,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 243,
+ "line": 235,
"character": 15
}
]
},
{
- "id": 202,
+ "id": 216,
"name": "signUp",
"kind": 2048,
"kindString": "Method",
@@ -4139,7 +4381,7 @@
},
"signatures": [
{
- "id": 203,
+ "id": 217,
"name": "signUp",
"kind": 4096,
"kindString": "Call signature",
@@ -4151,7 +4393,7 @@
},
"parameters": [
{
- "id": 204,
+ "id": 218,
"name": "credentials",
"kind": 32768,
"kindString": "Parameter",
@@ -4164,7 +4406,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 205,
+ "id": 219,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4173,7 +4415,7 @@
},
"children": [
{
- "id": 206,
+ "id": 220,
"name": "email",
"kind": 32,
"kindString": "Variable",
@@ -4196,7 +4438,7 @@
}
},
{
- "id": 207,
+ "id": 221,
"name": "password",
"kind": 32,
"kindString": "Variable",
@@ -4224,8 +4466,8 @@
"title": "Variables",
"kind": 32,
"children": [
- 206,
- 207
+ 220,
+ 221
]
}
],
@@ -4246,7 +4488,7 @@
{
"type": "reflection",
"declaration": {
- "id": 208,
+ "id": 222,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4255,7 +4497,7 @@
},
"children": [
{
- "id": 209,
+ "id": 223,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4285,7 +4527,7 @@
}
},
{
- "id": 211,
+ "id": 225,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4314,7 +4556,7 @@
}
},
{
- "id": 210,
+ "id": 224,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4349,9 +4591,9 @@
"title": "Variables",
"kind": 32,
"children": [
- 209,
- 211,
- 210
+ 223,
+ 225,
+ 224
]
}
],
@@ -4378,7 +4620,7 @@
]
},
{
- "id": 242,
+ "id": 249,
"name": "update",
"kind": 2048,
"kindString": "Method",
@@ -4387,7 +4629,7 @@
},
"signatures": [
{
- "id": 243,
+ "id": 250,
"name": "update",
"kind": 4096,
"kindString": "Call signature",
@@ -4399,7 +4641,7 @@
},
"parameters": [
{
- "id": 244,
+ "id": 251,
"name": "attributes",
"kind": 32768,
"kindString": "Parameter",
@@ -4419,7 +4661,7 @@
{
"type": "reflection",
"declaration": {
- "id": 245,
+ "id": 252,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4428,7 +4670,7 @@
},
"children": [
{
- "id": 246,
+ "id": 253,
"name": "data",
"kind": 32,
"kindString": "Variable",
@@ -4438,7 +4680,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 19
}
],
@@ -4458,7 +4700,7 @@
}
},
{
- "id": 248,
+ "id": 255,
"name": "error",
"kind": 32,
"kindString": "Variable",
@@ -4468,7 +4710,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 58
}
],
@@ -4487,7 +4729,7 @@
}
},
{
- "id": 247,
+ "id": 254,
"name": "user",
"kind": 32,
"kindString": "Variable",
@@ -4497,7 +4739,7 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 38
}
],
@@ -4522,16 +4764,16 @@
"title": "Variables",
"kind": 32,
"children": [
- 246,
- 248,
- 247
+ 253,
+ 255,
+ 254
]
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 179,
+ "line": 171,
"character": 13
}
]
@@ -4545,13 +4787,13 @@
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 177,
+ "line": 169,
"character": 14
}
]
},
{
- "id": 225,
+ "id": 239,
"name": "user",
"kind": 2048,
"kindString": "Method",
@@ -4560,7 +4802,7 @@
},
"signatures": [
{
- "id": 226,
+ "id": 240,
"name": "user",
"kind": 4096,
"kindString": "Call signature",
@@ -4571,132 +4813,25 @@
"shortText": "Returns the user data, if there is a logged in user."
},
"type": {
- "type": "reflection",
- "declaration": {
- "id": 227,
- "name": "__type",
- "kind": 65536,
- "kindString": "Type literal",
- "flags": {
- "isExported": true
+ "type": "union",
+ "types": [
+ {
+ "type": "reference",
+ "id": 33,
+ "name": "User"
},
- "children": [
- {
- "id": 228,
- "name": "data",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 16
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 33,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 230,
- "name": "error",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 55
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "name": "Error"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- },
- {
- "id": 229,
- "name": "user",
- "kind": 32,
- "kindString": "Variable",
- "flags": {
- "isExported": true
- },
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 35
- }
- ],
- "type": {
- "type": "union",
- "types": [
- {
- "type": "reference",
- "id": 33,
- "name": "User"
- },
- {
- "type": "intrinsic",
- "name": "null"
- }
- ]
- }
- }
- ],
- "groups": [
- {
- "title": "Variables",
- "kind": 32,
- "children": [
- 228,
- 230,
- 229
- ]
- }
- ],
- "sources": [
- {
- "fileName": "GoTrueClient.ts",
- "line": 128,
- "character": 9
- }
- ]
- }
+ {
+ "type": "intrinsic",
+ "name": "null"
+ }
+ ]
}
}
],
"sources": [
{
"fileName": "GoTrueClient.ts",
- "line": 128,
+ "line": 132,
"character": 6
}
]
@@ -4707,43 +4842,43 @@
"title": "Constructors",
"kind": 512,
"children": [
- 189
+ 203
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 182,
- 185,
- 184,
- 183,
- 187,
- 186,
- 188
+ 196,
+ 199,
+ 198,
+ 197,
+ 201,
+ 200,
+ 202
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 307,
- 271,
- 283,
- 315,
- 299,
- 305,
+ 314,
+ 278,
+ 290,
+ 322,
+ 306,
+ 312,
+ 310,
303,
- 296,
+ 256,
+ 268,
+ 243,
+ 241,
+ 226,
+ 264,
+ 216,
249,
- 261,
- 236,
- 231,
- 212,
- 257,
- 202,
- 242,
- 225
+ 239
]
}
],
@@ -4756,7 +4891,7 @@
]
},
{
- "id": 318,
+ "id": 325,
"name": "DEFAULT_OPTIONS",
"kind": 2097152,
"kindString": "Object literal",
@@ -4765,7 +4900,7 @@
},
"children": [
{
- "id": 320,
+ "id": 327,
"name": "autoRefreshToken",
"kind": 32,
"kindString": "Variable",
@@ -4784,7 +4919,7 @@
"defaultValue": "true"
},
{
- "id": 323,
+ "id": 330,
"name": "detectSessionInUrl",
"kind": 32,
"kindString": "Variable",
@@ -4803,7 +4938,7 @@
"defaultValue": "true"
},
{
- "id": 324,
+ "id": 331,
"name": "headers",
"kind": 32,
"kindString": "Variable",
@@ -4818,7 +4953,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 325,
+ "id": 332,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -4828,7 +4963,7 @@
"defaultValue": "DEFAULT_HEADERS"
},
{
- "id": 322,
+ "id": 329,
"name": "localStorage",
"kind": 32,
"kindString": "Variable",
@@ -4844,10 +4979,10 @@
"type": "reference",
"name": "Storage"
},
- "defaultValue": "global.localStorage"
+ "defaultValue": "globalThis.localStorage"
},
{
- "id": 321,
+ "id": 328,
"name": "persistSession",
"kind": 32,
"kindString": "Variable",
@@ -4866,7 +5001,7 @@
"defaultValue": "true"
},
{
- "id": 319,
+ "id": 326,
"name": "url",
"kind": 32,
"kindString": "Variable",
@@ -4890,12 +5025,12 @@
"title": "Variables",
"kind": 32,
"children": [
- 320,
- 323,
- 324,
- 322,
- 321,
- 319
+ 327,
+ 330,
+ 331,
+ 329,
+ 328,
+ 326
]
}
],
@@ -4917,14 +5052,14 @@
"title": "Classes",
"kind": 128,
"children": [
- 181
+ 195
]
},
{
"title": "Object literals",
"kind": 2097152,
"children": [
- 318
+ 325
]
}
],
@@ -4937,14 +5072,14 @@
]
},
{
- "id": 326,
+ "id": 333,
"name": "\"index\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/index.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/index.ts",
"sources": [
{
"fileName": "index.ts",
@@ -4954,17 +5089,17 @@
]
},
{
- "id": 173,
+ "id": 187,
"name": "\"lib/constants\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/constants.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/constants.ts",
"children": [
{
- "id": 175,
+ "id": 189,
"name": "AUDIENCE",
"kind": 32,
"kindString": "Variable",
@@ -4986,7 +5121,7 @@
"defaultValue": "process.env.AUDIENCE || ''"
},
{
- "id": 176,
+ "id": 190,
"name": "DEFAULT_HEADERS",
"kind": 32,
"kindString": "Variable",
@@ -5004,7 +5139,7 @@
"type": {
"type": "reflection",
"declaration": {
- "id": 177,
+ "id": 191,
"name": "__type",
"kind": 65536,
"kindString": "Type literal",
@@ -5015,7 +5150,7 @@
}
},
{
- "id": 178,
+ "id": 192,
"name": "EXPIRY_MARGIN",
"kind": 32,
"kindString": "Variable",
@@ -5046,7 +5181,7 @@
"defaultValue": "process.env.EXPIRY_MARGIN || 60 * 1000"
},
{
- "id": 174,
+ "id": 188,
"name": "GOTRUE_URL",
"kind": 32,
"kindString": "Variable",
@@ -5068,7 +5203,7 @@
"defaultValue": "process.env.GOTRUE_URL || 'http://localhost:9999'"
},
{
- "id": 179,
+ "id": 193,
"name": "STORAGE_KEY",
"kind": 32,
"kindString": "Variable",
@@ -5095,11 +5230,11 @@
"title": "Variables",
"kind": 32,
"children": [
- 175,
- 176,
- 178,
- 174,
- 179
+ 189,
+ 190,
+ 192,
+ 188,
+ 193
]
}
],
@@ -5119,7 +5254,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/fetch.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/fetch.ts",
"children": [
{
"id": 2,
@@ -5560,17 +5695,17 @@
]
},
{
- "id": 141,
+ "id": 155,
"name": "\"lib/helpers\"",
"kind": 1,
"kindString": "Module",
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/helpers.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/helpers.ts",
"children": [
{
- "id": 142,
+ "id": 156,
"name": "LocalStorage",
"kind": 128,
"kindString": "Class",
@@ -5579,7 +5714,7 @@
},
"indexSignature": [
{
- "id": 144,
+ "id": 158,
"name": "__index",
"kind": 8192,
"kindString": "Index signature",
@@ -5588,7 +5723,7 @@
},
"parameters": [
{
- "id": 145,
+ "id": 159,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -5609,7 +5744,7 @@
],
"children": [
{
- "id": 147,
+ "id": 161,
"name": "constructor",
"kind": 512,
"kindString": "Constructor",
@@ -5618,7 +5753,7 @@
},
"signatures": [
{
- "id": 148,
+ "id": 162,
"name": "new LocalStorage",
"kind": 16384,
"kindString": "Constructor signature",
@@ -5627,7 +5762,7 @@
},
"parameters": [
{
- "id": 149,
+ "id": 163,
"name": "localStorage",
"kind": 32768,
"kindString": "Parameter",
@@ -5642,7 +5777,7 @@
],
"type": {
"type": "reference",
- "id": 142,
+ "id": 156,
"name": "LocalStorage"
}
}
@@ -5656,7 +5791,7 @@
]
},
{
- "id": 146,
+ "id": 160,
"name": "length",
"kind": 1024,
"kindString": "Property",
@@ -5676,7 +5811,7 @@
}
},
{
- "id": 143,
+ "id": 157,
"name": "localStorage",
"kind": 1024,
"kindString": "Property",
@@ -5696,7 +5831,7 @@
}
},
{
- "id": 150,
+ "id": 164,
"name": "clear",
"kind": 2048,
"kindString": "Method",
@@ -5705,7 +5840,7 @@
},
"signatures": [
{
- "id": 151,
+ "id": 165,
"name": "clear",
"kind": 4096,
"kindString": "Call signature",
@@ -5727,7 +5862,7 @@
]
},
{
- "id": 159,
+ "id": 173,
"name": "getItem",
"kind": 2048,
"kindString": "Method",
@@ -5736,7 +5871,7 @@
},
"signatures": [
{
- "id": 160,
+ "id": 174,
"name": "getItem",
"kind": 4096,
"kindString": "Call signature",
@@ -5745,7 +5880,7 @@
},
"parameters": [
{
- "id": 161,
+ "id": 175,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -5782,7 +5917,7 @@
]
},
{
- "id": 152,
+ "id": 166,
"name": "key",
"kind": 2048,
"kindString": "Method",
@@ -5791,7 +5926,7 @@
},
"signatures": [
{
- "id": 153,
+ "id": 167,
"name": "key",
"kind": 4096,
"kindString": "Call signature",
@@ -5800,7 +5935,7 @@
},
"parameters": [
{
- "id": 154,
+ "id": 168,
"name": "index",
"kind": 32768,
"kindString": "Parameter",
@@ -5837,7 +5972,7 @@
]
},
{
- "id": 162,
+ "id": 176,
"name": "removeItem",
"kind": 2048,
"kindString": "Method",
@@ -5846,7 +5981,7 @@
},
"signatures": [
{
- "id": 163,
+ "id": 177,
"name": "removeItem",
"kind": 4096,
"kindString": "Call signature",
@@ -5855,7 +5990,7 @@
},
"parameters": [
{
- "id": 164,
+ "id": 178,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -5883,7 +6018,7 @@
]
},
{
- "id": 155,
+ "id": 169,
"name": "setItem",
"kind": 2048,
"kindString": "Method",
@@ -5892,7 +6027,7 @@
},
"signatures": [
{
- "id": 156,
+ "id": 170,
"name": "setItem",
"kind": 4096,
"kindString": "Call signature",
@@ -5901,7 +6036,7 @@
},
"parameters": [
{
- "id": 157,
+ "id": 171,
"name": "key",
"kind": 32768,
"kindString": "Parameter",
@@ -5914,7 +6049,7 @@
}
},
{
- "id": 158,
+ "id": 172,
"name": "value",
"kind": 32768,
"kindString": "Parameter",
@@ -5947,26 +6082,26 @@
"title": "Constructors",
"kind": 512,
"children": [
- 147
+ 161
]
},
{
"title": "Properties",
"kind": 1024,
"children": [
- 146,
- 143
+ 160,
+ 157
]
},
{
"title": "Methods",
"kind": 2048,
"children": [
- 150,
- 159,
- 152,
- 162,
- 155
+ 164,
+ 173,
+ 166,
+ 176,
+ 169
]
}
],
@@ -5985,7 +6120,7 @@
]
},
{
- "id": 169,
+ "id": 183,
"name": "getParameterByName",
"kind": 64,
"kindString": "Function",
@@ -5994,7 +6129,7 @@
},
"signatures": [
{
- "id": 170,
+ "id": 184,
"name": "getParameterByName",
"kind": 4096,
"kindString": "Call signature",
@@ -6003,7 +6138,7 @@
},
"parameters": [
{
- "id": 171,
+ "id": 185,
"name": "name",
"kind": 32768,
"kindString": "Parameter",
@@ -6016,7 +6151,7 @@
}
},
{
- "id": 172,
+ "id": 186,
"name": "url",
"kind": 32768,
"kindString": "Parameter",
@@ -6063,7 +6198,7 @@
]
},
{
- "id": 167,
+ "id": 181,
"name": "isBrowser",
"kind": 64,
"kindString": "Function",
@@ -6073,7 +6208,7 @@
},
"signatures": [
{
- "id": 168,
+ "id": 182,
"name": "isBrowser",
"kind": 4096,
"kindString": "Call signature",
@@ -6095,7 +6230,7 @@
]
},
{
- "id": 165,
+ "id": 179,
"name": "uuid",
"kind": 64,
"kindString": "Function",
@@ -6104,7 +6239,7 @@
},
"signatures": [
{
- "id": 166,
+ "id": 180,
"name": "uuid",
"kind": 4096,
"kindString": "Call signature",
@@ -6131,16 +6266,16 @@
"title": "Classes",
"kind": 128,
"children": [
- 142
+ 156
]
},
{
"title": "Functions",
"kind": 64,
"children": [
- 169,
- 167,
- 165
+ 183,
+ 181,
+ 179
]
}
],
@@ -6160,7 +6295,7 @@
"flags": {
"isExported": true
},
- "originalName": "/home/runner/work/gotrue-js/gotrue-js/src/lib/types.ts",
+ "originalName": "/Users/supabase/Documents/projects/supabase/gotrue-js/src/lib/types.ts",
"children": [
{
"id": 27,
@@ -7176,11 +7311,11 @@
"kind": 1,
"children": [
68,
- 180,
- 326,
- 173,
+ 194,
+ 333,
+ 187,
1,
- 141,
+ 155,
26
]
}
diff --git a/web/spec/gotrue.yml b/web/spec/gotrue.yml
index d991fc91d48..c06231461a2 100644
--- a/web/spec/gotrue.yml
+++ b/web/spec/gotrue.yml
@@ -1,14 +1,14 @@
openref: 0.1
info:
- title: GoTrue Client
+ title: GoTrue Client
description: |
GoTrue is an authentication server.
Supabase provides client libraries to interact with the server
-
+
definition: spec/gotrue.json
- libraries:
+ libraries:
- name: 'JavaScript'
id: 'js'
version: '0.0.1'
@@ -36,6 +36,8 @@ info:
items:
- api.signUpWithEmail
- api.signInWithEmail
+ - api.sendMagicLinkEmail
+ - api.inviteUserByEmail
- api.resetPasswordForEmail
- api.signOut
- api.getUser
@@ -43,11 +45,10 @@ info:
- api.refreshAccessToken
pages:
-
- Installing:
+ Installing:
description: |
All JavaScript libraries are built directly by the Supabase team.
-
+
Other languages are built by the community and supported by Supabase.
## Javascript
@@ -62,8 +63,29 @@ pages:
# Not yet implemented
```
- Initializing:
+ Initializing:
$ref: '"GoTrueClient".GoTrueClient.constructor'
+ examples:
+ - name: Initialize a GoTrue client
+ isSpotlight: true
+ js: |
+ ```js
+ import { GoTrueClient } from '@supabase/gotrue-js'
+
+ const auth = new GoTrueClient({
+ url: "https://your-gotrue-url.com",
+ headers: {
+ apikey:
+ "",
+ Authorization:
+ "Bearer ",
+ },
+ })
+ ```
+ py: |
+ ```py
+ # Not yet implemented
+ ```
signUp:
$ref: '"GoTrueClient".GoTrueClient.signUp'
@@ -80,7 +102,7 @@ pages:
password: 'example-password',
})
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -92,12 +114,18 @@ pages:
isSpotlight: true
js: |
```js
+ // with email and password
const { user, error } = await auth.signIn({
email: 'example@email.com',
password: 'example-password',
})
+
+ // send magic link (passwordless link)
+ const { user, error } = await auth.signIn({
+ email: 'example@email.com',
+ })
```
- py: |
+ py: |
```py
# Not yet implemented
```
@@ -140,12 +168,12 @@ pages:
data: { hello: 'world' }
})
```
- py: |
+ py: |
```py
# Not yet implemented
```
- onAuthStateChange:
+ onAuthStateChange:
# $ref: onAuthStateChange
api.signUpWithEmail:
@@ -160,18 +188,80 @@ pages:
api.signInWithEmail:
$ref: '"GoTrueApi".GoTrueApi.signInWithEmail'
+ examples:
+ - name: Sign up a new user with email
+ js: |
+ ```js
+ const { error, data } = await api
+ .signIpWithEmail('example@email.com', 'example-password')
+ ```
+
+ api.sendMagicLinkEmail:
+ $ref: '"GoTrueApi".GoTrueApi.sendMagicLinkEmail'
+ examples:
+ - name: Send user a passwordless login link via email
+ js: |
+ ```js
+ const { error, data } = await api
+ .sendMagicLinkEmail('example@email.com')
+ ```
+
+ api.inviteUserByEmail:
+ $ref: '"GoTrueApi".GoTrueApi.inviteUserByEmail'
+ examples:
+ - name: Send a user an invite link to sign up via email
+ js: |
+ ```js
+ const { error, data } = await api
+ .inviteUserByEmail('example@email.com')
+ ```
api.resetPasswordForEmail:
$ref: '"GoTrueApi".GoTrueApi.resetPasswordForEmail'
+ examples:
+ - name: Send a user a password reset email
+ js: |
+ ```js
+ const { error, data } = await api
+ .resetPasswordForEmail('example@email.com')
+ ```
api.signOut:
$ref: '"GoTrueApi".GoTrueApi.signOut'
+ examples:
+ - name: Sign a user out
+ js: |
+ ```js
+ const { error, data } = await api
+ .signOut(access_token)
+ ```
api.getUser:
$ref: '"GoTrueApi".GoTrueApi.getUser'
+ examples:
+ - name: Get the user details for a given user
+ js: |
+ ```js
+ const { error, data } = await api
+ .getUser(access_token)
+ ```
api.updateUser:
$ref: '"GoTrueApi".GoTrueApi.updateUser'
-
+ examples:
+ - name: Update user info that Gotrue holds (also used for setting new passwords)
+ js: |
+ ```js
+ const { error, data } = await api
+ .updateUser(access_token, { password : 'Why Shinji?' })
+ ```
+
api.refreshAccessToken:
- $ref: '"GoTrueApi".GoTrueApi.refreshAccessToken'
\ No newline at end of file
+ $ref: '"GoTrueApi".GoTrueApi.refreshAccessToken'
+ examples:
+ - name: Get a new access and refresh token using a valied refresh_token
+ js: |
+ ```js
+ const { error, data } = await api
+ .refreshAccessToken(refresh_token)
+ ```
diff --git a/web/spec/supabase.yml b/web/spec/supabase.yml
index d5f94ee3b5d..96ba34eaac9 100644
--- a/web/spec/supabase.yml
+++ b/web/spec/supabase.yml
@@ -255,7 +255,7 @@ pages:
# Not yet implemented
```
- name: Sign in with magic link.
- description: If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session.
+ description: If no password is provided, the user will be sent a "magic link" to their email address, which they can click to open your application with a valid session. By default, a given user can only request a Magic Link once every 60 seconds.
js: |
```js
const { user, error } = await supabase.auth.signIn({
diff --git a/web/static/.well-known/security.txt b/web/static/.well-known/security.txt
index 8f0a14b10c6..5aac9cccb52 100644
--- a/web/static/.well-known/security.txt
+++ b/web/static/.well-known/security.txt
@@ -1,2 +1,25 @@
Contact: security@supabase.io
Canonical: https://supabase.io/.well-known/security.txt
+
+
+At Supabase, we consider the security of our systems a top priority. But no matter how much effort we put into system security, there can still be vulnerabilities present.
+
+If you discover a vulnerability, we would like to know about it so we can take steps to address it as quickly as possible. We would like to ask you to help us better protect our clients and our systems.
+
+Please do the following:
+
+- E-mail your findings to security@supabase.io.
+- Do not take advantage of the vulnerability or problem you have discovered, for example by downloading more data than necessary to demonstrate the vulnerability or deleting or modifying other people's data,
+- Do not reveal the problem to others until it has been resolved,
+- Do not use attacks on physical security, social engineering, distributed denial of service, spam or applications of third parties, and
+- Do provide sufficient information to reproduce the problem, so we will be able to resolve it as quickly as possible. Usually, the IP address or the URL of the affected system and a description of the vulnerability will be sufficient, but complex vulnerabilities may require further explanation.
+
+What we promise:
+
+- We will respond to your report within 3 business days with our evaluation of the report and an expected resolution date,
+- If you have followed the instructions above, we will not take any legal action against you in regard to the report,
+- We will handle your report with strict confidentiality, and not pass on your personal details to third parties without your permission,
+- We will keep you informed of the progress towards resolving the problem,
+- In the public information concerning the problem reported, we will give your name as the discoverer of the problem (unless you desire otherwise), and
+
+We strive to resolve all problems as quickly as possible, and we would like to play an active role in the ultimate publication on the problem after it is resolved.
diff --git a/web/static/humans.txt b/web/static/humans.txt
index 18b8b16ceaf..dc0a328e2ba 100644
--- a/web/static/humans.txt
+++ b/web/static/humans.txt
@@ -7,15 +7,17 @@ Ant Wilson
Bobbie Soedirgo
Chris Copplestone
Hieu Pham
+Jonny Summers-Muir
Joshen Lim
Paul Copplestone
+Rory Wilding
Steve Chavez
____________
JOBS
-If you are interested in working with us send an email to copple@supabase.io
+If you are interested in working with us send an email to work@supabase.io
___________
diff --git a/web/static/img/delete-users.gif b/web/static/img/delete-users.gif
new file mode 100644
index 00000000000..08eb2491e76
Binary files /dev/null and b/web/static/img/delete-users.gif differ
diff --git a/web/static/img/invite-users.gif b/web/static/img/invite-users.gif
new file mode 100644
index 00000000000..bd3a20c1c1f
Binary files /dev/null and b/web/static/img/invite-users.gif differ
diff --git a/web/static/img/status-page.png b/web/static/img/status-page.png
new file mode 100644
index 00000000000..8b5460b8a41
Binary files /dev/null and b/web/static/img/status-page.png differ
diff --git a/web/static/img/supabase-monaco-editor.png b/web/static/img/supabase-monaco-editor.png
new file mode 100644
index 00000000000..f6091d117fd
Binary files /dev/null and b/web/static/img/supabase-monaco-editor.png differ
diff --git a/web/static/img/supabase-november-2020.png b/web/static/img/supabase-november-2020.png
new file mode 100644
index 00000000000..fcac70e83e5
Binary files /dev/null and b/web/static/img/supabase-november-2020.png differ