Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

update metadata

Kang Ming949458558e75
diff --git a/web/docs/reference/tools/auth.mdx b/web/docs/reference/tools/auth.mdx
index ba029706560..c1c3ed60198 100644
--- a/web/docs/reference/tools/auth.mdx
+++ b/web/docs/reference/tools/auth.mdx
@@ -8,219 +8,68 @@ GoTrue is a small open-source API written in golang, that can act as a self-stan
API service for handling user registration and authentication for JAM projects.
It's based on OAuth2 and JWT and will handle user signup, authentication and custom
-user data.
+user data.
-## Quick Start
-
-Create a `.env` file to store your own custom env vars. See [`example.env`](example.env)
-
-1. Start the local postgres database in a postgres container: `./hack/postgresd.sh`
-2. Build the gotrue binary: `make build` . You should see an output like this:
-
-```
-go build -ldflags "-X github.com/supabase/gotrue/cmd.Version=`git rev-parse HEAD`"
-GOOS=linux GOARCH=arm64 go build -ldflags "-X github.com/supabase/gotrue/cmd.Version=`git rev-parse HEAD`" -o gotrue-arm64
-```
-
-3. Execute the gotrue binary: `./gotrue`
-
-### If you have docker installed...
-
-Create a `.env.docker` file to store your own custom env vars. See [`example.docker.env`](example.docker.env)
-
-1. `make build`
-2. `make dev`
-3. `docker ps` should show 2 docker containers (`gotrue_postgresql` and `gotrue_gotrue`)
-4. That's it! Visit the [health checkendpoint](http://localhost:9999/health) to confirm that gotrue is running.
+If you're using gotrue on the Supabase platform, some of these options are not exposed on the dashboard as they are set internally.
+If you're self-hosting gotrue on your own infrastructure, you will need to maintain these configuration options in an `.env` file. Most of these configuration options need to be prefixed with `GOTRUE_` if self-hosting.
## Configuration
-You may configure GoTrue using either a configuration file named `.env`,
-environment variables, or a combination of both. Environment variables are prefixed with `GOTRUE_`, and will always have precedence over values provided via file.
-
-### Top-Level
-
-```properties
-GOTRUE_SITE_URL=https://example.netlify.com/
-```
-
-`SITE_URL` - `string` **required**
-
-The base URL your site is located at. Currently used in combination with other settings to construct URLs used in emails. Any URI that shares a host with `SITE_URL` is a permitted value for `redirect_to` params (see `/authorize` etc.).
-
-`URI_ALLOW_LIST` - `string`
-
-A comma separated list of URIs (e.g. `"https://foo.example.com,https://*.foo.example.com,https://bar.example.com"`) which are permitted as valid `redirect_to` destinations. Defaults to []. Supports wildcard matching through globbing. e.g. `https://*.foo.example.com` will allow `https://a.foo.example.com` and `https://b.foo.example.com` to be accepted. Globbing is also supported on subdomains. e.g. `https://foo.example.com/*` will allow `https://foo.example.com/page1` and `https://foo.example.com/page2` to be accepted.
-
-For more common glob patterns, check out the [following link](https://pkg.go.dev/github.com/gobwas/glob#Compile).
-
-`OPERATOR_TOKEN` - `string` _Multi-instance mode only_
-
-The shared secret with an operator (usually Netlify) for this microservice. Used to verify requests have been proxied through the operator and
-the payload values can be trusted.
-
-`DISABLE_SIGNUP` - `bool`
-
-When signup is disabled the only way to create new users is through invites. Defaults to `false`, all signups enabled.
-
-`GOTRUE_EXTERNAL_EMAIL_ENABLED` - `bool`
-
-Use this to disable email signups (users can still use external oauth providers to sign up / sign in)
-
-`GOTRUE_EXTERNAL_PHONE_ENABLED` - `bool`
-
-Use this to disable phone signups (users can still use external oauth providers to sign up / sign in)
-
-`GOTRUE_RATE_LIMIT_HEADER` - `string`
-
-Header on which to rate limit the `/token` endpoint.
-
-`GOTRUE_RATE_LIMIT_EMAIL_SENT` - `string`
-
-Rate limit the number of emails sent per hr on the following endpoints: `/signup`, `/invite`, `/magiclink`, `/recover`, `/otp`, & `/user`.
-
-`GOTRUE_PASSWORD_MIN_LENGTH` - `int`
-
-Minimum password length, defaults to 6.
-
-`GOTRUE_SECURITY_REFRESH_TOKEN_ROTATION_ENABLED` - `bool`
-
-If refresh token rotation is enabled, gotrue will automatically detect malicious attempts to reuse a revoked refresh token. When a malicious attempt is detected, gotrue immediately revokes all tokens that descended from the offending token.
-
-`GOTRUE_SECURITY_REFRESH_TOKEN_REUSE_INTERVAL` - `string`
-
-This setting is only applicable if `GOTRUE_SECURITY_REFRESH_TOKEN_ROTATION_ENABLED` is enabled. The reuse interval for a refresh token allows for exchanging the refresh token multiple times during the interval to support concurrency or offline issues. During the reuse interval, gotrue will not consider using a revoked token as a malicious attempt and will simply return the child refresh token.
-
-Only the previous revoked token can be reused. Using an old refresh token way before the current valid refresh token will trigger the reuse detection.
+The following list provides an overview of the configuration set in gotrue.
+
+### Security
+
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="site_url">`SITE_URL`</span> | `string` | **Required**. The base URL your site is located at. Currently used in combination with other settings to construct URLs used in emails. Any URI that shares a host with `SITE_URL` is a permitted value for `redirect_to` params (see `/authorize` etc.). |
+| <span id="uri_allow_list">`URI_ALLOW_LIST`</span> | `string` | A comma separated list of URIs (e.g. `"https://foo.example.com,https://*.foo.example.com"`) which are permitted as valid `redirect_to` destinations. Defaults to [ ].<br/><br/>Supports wildcard matching through globbing. (e.g. `https://*.foo.example.com` will allow `https://a.foo.example.com` and `https://b.foo.example.com` to be accepted.)<br/><br/>Globbing is also supported on subdomains. (e.g. `https://foo.example.com/*` will allow `https://foo.example.com/page1` and `https://foo.example.com/page2` to be accepted.)<br/>For more common glob patterns, check out the [following link](https://pkg.go.dev/github.com/gobwas/glob#Compile).|
+| <span id="operator_token">`OPERATOR_TOKEN`</span> | `string` | The shared secret with an operator for this microservice. Used to verify requests have been proxied through the operator and the payload values can be trusted. |
+| <span id="disable_signup">`DISABLE_SIGNUP`</span> | `bool` | When signup is disabled the only way to create new users is through invites. Defaults to `false`, all signups enabled. |
+| <span id="email_enabled">`EXTERNAL_EMAIL_ENABLED`</span> | `bool` | Use this to disable email signups (users can still use external oauth providers to sign up / sign in) |
+| <span id="phone_enabled">`EXTERNAL_PHONE_ENABLED`</span> | `bool` | Use this to disable phone signups (users can still use external oauth providers to sign up / sign in) |
+| <span id="rate_limit_token_refresh">`RATE_LIMIT_TOKEN_REFRESH`</span> | `string` | Rate limit the number of requests sent to `/token` |
+| <span id="rate_limit_email_sent">`RATE_LIMIT_EMAIL_SENT`</span> | `string` | Rate limit the number of emails sent per hr on the following endpoints: `/signup`, `/invite`, `/magiclink`, `/recover`, `/otp`, & `/user`. |
+| <span id="password_min_length">`PASSWORD_MIN_LENGTH`</span> | `int` | Minimum password length, defaults to 6. |
+
+These options control additional security settings available in gotrue. If self-hosting, they need to be prefixed with `GOTRUE_SECURITY_` .
+
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="refresh_token_rotation_enabled">`REFRESH_TOKEN_ROTATION_ENABLED`</span> | `bool` | If refresh token rotation is enabled, gotrue will automatically detect malicious attempts to reuse a revoked refresh token. When a malicious attempt is detected, gotrue immediately revokes all tokens that descended from the offending token. |
+| <span id="refresh_token_reuse_interval">`REFRESH_TOKEN_REUSE_INTERVAL`</span> | `string` | This setting is only applicable if `REFRESH_TOKEN_ROTATION_ENABLED` is enabled. The reuse interval for a refresh token allows for exchanging the refresh token multiple times during the interval to support concurrency or offline issues.<br/>During the reuse interval, gotrue will not consider using a revoked token as a malicious attempt and will simply return the child refresh token.<br/>Only the previous revoked token can be reused. Using an old refresh token way before the current valid refresh token will trigger the reuse detection. |
+| <span id="captcha_enabled">`CAPTCHA_ENABLED`</span> | `string` | Enables the captcha middleware. |
+| <span id="captcha_provider">`CAPTCHA_PROVIDER`</span> | `string` | The only captcha provider option supported is: `hcaptcha`. |
+| <span id="captcha_secret">`CAPTCHA_SECRET`</span> | `string` | The captcha secret token. Retrieve this from your captcha account. |
+| <span id="captcha_timeout">`CAPTCHA_TIMEOUT`</span> | `string` | The http timeout on the captcha request. |
+| <span id="update_password_require_reauthentication">`UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION`</span> | `bool` | When enabled, this requires a user to reauthenticate before being able to update their password. |
### API
-```properties
-GOTRUE_API_HOST=localhost
-PORT=9999
-```
-
-`API_HOST` - `string`
-
-Hostname to listen on.
-
-`PORT` (no prefix) / `API_PORT` - `number`
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="api_host">`API_HOST`</span> | `string` | Hostname to listen on. |
+| <span id="port">`PORT`</span> | `number` | Port number to listen on. Defaults to `8081`. |
+| <span id="request_id_header">`REQUEST_ID_HEADER`</span> | `string` | If you wish to inherit a request ID from the incoming request, specify the name in this value. |
-Port number to listen on. Defaults to `8081`.
-
-`API_ENDPOINT` - `string` _Multi-instance mode only_
-
-Controls what endpoint Netlify can access this API on.
-
-`REQUEST_ID_HEADER` - `string`
-
-If you wish to inherit a request ID from the incoming request, specify the name in this value.
### Database
-```properties
-GOTRUE_DB_DRIVER=mysql
-DATABASE_URL=root@localhost/gotrue
-```
-
-`DB_DRIVER` - `string` **required**
-
-Chooses what dialect of database you want. Must be `mysql`.
-
-`DATABASE_URL` (no prefix) / `DB_DATABASE_URL` - `string` **required**
-
-Connection string for the database.
-
-`GOTRUE_DB_MAX_POOL_SIZE` - `int`
-
-Sets the maximum number of open connections to the database. Defaults to 0 which is equivalent to an "unlimited" number of connections.
-
-`DB_NAMESPACE` - `string`
-
-Adds a prefix to all table names.
-
-**Migrations Note**
-
-Migrations are not applied automatically, so you will need to run them after
-you've built gotrue.
-
-- If built locally: `./gotrue migrate`
-- Using Docker: `docker run --rm gotrue gotrue migrate`
-
-### Logging
-
-```properties
-LOG_LEVEL=debug # available without GOTRUE prefix (exception)
-GOTRUE_LOG_FILE=/var/log/go/gotrue.log
-```
-
-`LOG_LEVEL` - `string`
-
-Controls what log levels are output. Choose from `panic`, `fatal`, `error`, `warn`, `info`, or `debug`. Defaults to `info`.
-
-`LOG_FILE` - `string`
-
-If you wish logs to be written to a file, set `log_file` to a valid file path.
-
-### Opentracing
-
-Currently, only the Datadog tracer is supported.
-
-```properties
-GOTRUE_TRACING_ENABLED=true
-GOTRUE_TRACING_HOST=127.0.0.1
-GOTRUE_TRACING_PORT=8126
-GOTRUE_TRACING_TAGS="tag1:value1,tag2:value2"
-GOTRUE_SERVICE_NAME="gotrue"
-```
-
-`TRACING_ENABLED` - `bool`
-
-Whether tracing is enabled or not. Defaults to `false`.
-
-`TRACING_HOST` - `bool`
-
-The tracing destination.
-
-`TRACING_PORT` - `bool`
-
-The port for the tracing host.
-
-`TRACING_TAGS` - `string`
-
-A comma separated list of key:value pairs. These key value pairs will be added as tags to all opentracing spans.
-
-`SERVICE_NAME` - `string`
-
-The name to use for the service.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="db_driver">`DB_DRIVER`</span> | `string` | **Required**. Chooses what dialect of database you want. Must be `postgres`. |
+| <span id="database_url">`DATABASE_URL`</span> | `string` | **Required**. Connection string for the database. |
+| <span id="db_max_pool_size">`DB_MAX_POOL_SIZE`</span> | `int` | Sets the maximum number of open connections to the database. Defaults to 0 which is equivalent to an "unlimited" number of connections. |
+| <span id="db_namespace">`DB_NAMESPACE`</span> | `string` | Specifies the schema in which the tables are to be created in. |
### JSON Web Tokens (JWT)
-```properties
-GOTRUE_JWT_SECRET=supersecretvalue
-GOTRUE_JWT_EXP=3600
-GOTRUE_JWT_AUD=netlify
-```
-
-`JWT_SECRET` - `string` **required**
-
-The secret used to sign JWT tokens with.
-
-`JWT_EXP` - `number`
-
-How long tokens are valid for, in seconds. Defaults to 3600 (1 hour).
-
-`JWT_AUD` - `string`
-
-The default JWT audience. Use audiences to group users.
-
-`JWT_ADMIN_GROUP_NAME` - `string`
-
-The name of the admin group (if enabled). Defaults to `admin`.
-
-`JWT_DEFAULT_GROUP_NAME` - `string`
-
-The default group to assign all new users to.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="jwt_secret">`JWT_SECRET`</span> | `string` | **Required**. The secret used to sign JWT tokens with. |
+| <span id="jwt_exp">`JWT_EXP`</span> | `number` | How long tokens are valid for in seconds. Defaults to 3600 (1 hour). |
+| <span id="jwt_aud">`JWT_AUD`</span> | `string` | The default JWT audience. Use audiences to group users. Defaults to `authenticated`. |
+| <span id="jwt_admin_group_name">`JWT_ADMIN_GROUP_NAME`</span> | `string` | The name of the admin group (if enabled). Defaults to `admin`. |
+| <span id="jwt_default_group_name">`JWT_DEFAULT_GROUP_NAME`</span> | `string` | The default group to assign all new users to. |
### External Authentication Providers
@@ -228,174 +77,74 @@ We support `apple`, `azure`, `bitbucket`, `discord`, `facebook`, `github`, `gitl
Use the names as the keys underneath `external` to configure each separately.
-```properties
-GOTRUE_EXTERNAL_GITHUB_ENABLED=true
-GOTRUE_EXTERNAL_GITHUB_CLIENT_ID=myappclientid
-GOTRUE_EXTERNAL_GITHUB_SECRET=clientsecretvaluessssh
-GOTRUE_EXTERNAL_GITHUB_REDIRECT_URI=http://localhost:3000/callback
-```
-
No external providers are required, but you must provide the required values if you choose to enable any.
-`EXTERNAL_X_ENABLED` - `bool`
-
-Whether this external provider is enabled or not
-
-`EXTERNAL_X_CLIENT_ID` - `string` **required**
-
-The OAuth2 Client ID registered with the external provider.
-
-`EXTERNAL_X_SECRET` - `string` **required**
-
-The OAuth2 Client Secret provided by the external provider when you registered.
-
-`EXTERNAL_X_REDIRECT_URI` - `string` **required**
-
-The URI a OAuth2 provider will redirect to with the `code` and `state` values.
-
-`EXTERNAL_X_URL` - `string`
-
-The base URL used for constructing the URLs to request authorization and access tokens. Used by `gitlab` and `keycloak`. For `gitlab` it defaults to `https://gitlab.com`. For `keycloak` you need to set this to your instance, for example: `https://keycloak.example.com/auth/realms/myrealm`
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="external_x_enabled">`EXTERNAL_X_ENABLED`</span> | `bool` | Whether this external provider is enabled or not |
+| <span id="external_x_client_id">`EXTERNAL_X_CLIENT_ID`</span> | `string` | **Required**. The OAuth2 Client ID registered with the external provider. |
+| <span id="external_x_client_secret">`EXTERNAL_X_SECRET`</span> | `string` | **Required**. The OAuth2 Client Secret provided by the external provider when you registered. |
+| <span id="external_x_redirect_uri">`EXTERNAL_X_REDIRECT_URI`</span> | `string` | **Required**. Also known as the callback url, this is the URI an OAuth2 provider will redirect to with the `code` and `state` values. |
+| <span id="external_x_url">`EXTERNAL_X_URL`</span> | `string` | The base URL used for constructing the URLs to request authorization and access tokens. Used by `gitlab` and `keycloak`. For `gitlab` it defaults to `https://gitlab.com`. For `keycloak` you need to set this to your realm url, (e.g. `https://keycloak.example.com/auth/realms/myrealm`) |
#### Apple OAuth
-To try out external authentication with Apple locally, you will need to do the following:
-
-1. Remap localhost to \<my_custom_dns \> in your `/etc/hosts` config.
-2. Configure gotrue to serve HTTPS traffic over localhost by replacing `ListenAndServe` in [api.go](api/api.go) with:
- ```
- func (a *API) ListenAndServe(hostAndPort string) {
- log := logrus.WithField("component", "api")
- path, err := os.Getwd()
- if err != nil {
- log.Println(err)
- }
- server := &http.Server{
- Addr: hostAndPort,
- Handler: a.handler,
- }
- done := make(chan struct{})
- defer close(done)
- go func() {
- waitForTermination(log, done)
- ctx, cancel := context.WithTimeout(context.Background(), time.Minute)
- defer cancel()
- server.Shutdown(ctx)
- }()
- if err := server.ListenAndServeTLS("PATH_TO_CRT_FILE", "PATH_TO_KEY_FILE"); err != http.ErrServerClosed {
- log.WithError(err).Fatal("http server listen failed")
- }
- }
- ```
-3. Generate the crt and key file. See [here](https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/) for more information.
-4. Generate the `GOTRUE_EXTERNAL_APPLE_SECRET` by following this [post](https://medium.com/identity-beyond-borders/how-to-configure-sign-in-with-apple-77c61e336003)!
-
-### E-Mail
-
-Sending email is not required, but highly recommended for password recovery.
-If enabled, you must provide the required values below.
-
-```properties
-GOTRUE_SMTP_HOST=smtp.mandrillapp.com
-GOTRUE_SMTP_PORT=587
-GOTRUE_SMTP_PASS=correcthorsebatterystaple
-GOTRUE_MAILER_SUBJECTS_CONFIRMATION="Please confirm"
-```
-
-`SMTP_ADMIN_EMAIL` - `string` **required**
-
-The `From` email address for all emails sent.
-
-`SMTP_HOST` - `string` **required**
-
-The mail server hostname to send emails through.
-
-`SMTP_PORT` - `number` **required**
-
-The port number to connect to the mail server on.
-
-`SMTP_USER` - `string`
-
-If the mail server requires authentication, the username to use.
-
-`SMTP_PASS` - `string`
-
-If the mail server requires authentication, the password to use.
-
-`SMTP_MAX_FREQUENCY` - `number`
-
-Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email. The value is the number of seconds. Defaults to 900 (15 minutes).
-
-`SMTP_SENDER_NAME` - `string`
-
-Sets the name of the sender. Defaults to the `SMTP_ADMIN_EMAIL` if not used.
-
-`MAILER_AUTOCONFIRM` - `bool`
-
-If you do not require email confirmation, you may set this to `true`. Defaults to `false`.
-
-`MAILER_OTP_EXP` - `number`
-
-Controls the duration an email link or otp is valid for.
-
-`MAILER_URLPATHS_INVITE` - `string`
-
-URL path to use in the user invite email. Defaults to `/`.
-
-`MAILER_URLPATHS_CONFIRMATION` - `string`
-
-URL path to use in the signup confirmation email. Defaults to `/`.
-
-`MAILER_URLPATHS_RECOVERY` - `string`
-
-URL path to use in the password reset email. Defaults to `/`.
-
-`MAILER_URLPATHS_EMAIL_CHANGE` - `string`
-
-URL path to use in the email change confirmation email. Defaults to `/`.
-
-`MAILER_SUBJECTS_INVITE` - `string`
-
-Email subject to use for user invite. Defaults to `You have been invited`.
-
-`MAILER_SUBJECTS_CONFIRMATION` - `string`
-
-Email subject to use for signup confirmation. Defaults to `Confirm Your Signup`.
-
-`MAILER_SUBJECTS_RECOVERY` - `string`
-
-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`.
-
-`MAILER_TEMPLATES_INVITE` - `string`
-
-URL path to an email template to use when inviting a user.
-`SiteURL`, `Email`, and `ConfirmationURL` variables are available.
+To try out sign-in with Apple locally, you will need to do the following:
+
+1. Run gotrue over https via ngrok or another proxy.
+2. Generate the crt and key file. See [here](https://www.freecodecamp.org/news/how-to-get-https-working-on-your-local-development-environment-in-5-minutes-7af615770eec/) for more information.
+3. Generate the `GOTRUE_EXTERNAL_APPLE_SECRET` by following this [post](https://medium.com/identity-beyond-borders/how-to-configure-sign-in-with-apple-77c61e336003)!
+
+### SMTP Configuration
+
+Sending email is not required, but highly recommended for password recovery. If `mailer_autoconfirm` is enabled, no emails will be sent out for `signup`, `recovery`, `invite`. Emails will only be sent out for `magiclink`.
+
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="smtp_admin_email">`SMTP_ADMIN_EMAIL`</span> | `string` | **Required**. The `From` email address for all emails sent. |
+| <span id="smtp_host">`SMTP_HOST`</span> | `string` | **Required**. The mail server hostname to send emails through. |
+| <span id="smtp_port">`SMTP_PORT`</span> | `string` | **Required**. The port number to connect to the mail server on. |
+| <span id="smtp_user">`SMTP_USER`</span> | `string` | **Required**. If the mail server requires authentication, the username to use. |
+| <span id="smtp_pass">`SMTP_PASS`</span> | `string` | **Required**. If the mail server requires authentication, the password to use. |
+| <span id="smtp_max_frequency">`SMTP_MAX_FREQUENCY`</span> | `string` | Controls the minimum amount of time that must pass before sending another signup confirmation or password reset email. The value is the number of seconds. Defaults to 60 seconds. |
+| <span id="smtp_sender_name">`SMTP_SENDER_NAME`</span> | `string` | Sets the name of the sender. Defaults to the `SMTP_ADMIN_EMAIL` if not used. |
+
+### Email
+
+These options control the emails sent from gotrue.
+
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_autoconfirm">`MAILER_AUTOCONFIRM`</span> | `bool` | If you do not require email confirmation, you may set this to `true`. Defaults to `false`. |
+| <span id="mailer_otp_exp">`MAILER_OTP_EXP`</span> | `string` | Controls the duration an email link or otp is valid for. Defaults to 24 hrs. |
+| <span id="mailer_urlpaths_invite">`MAILER_URLPATHS_INVITE`</span> | `string` | URL path to use in the user invite email. Defaults to `/`. |
+| <span id="mailer_urlpaths_confirmation">`MAILER_URLPATHS_CONFIRMATION`</span> | `string` | URL path to use in the signup confirmation email. Defaults to `/`. |
+| <span id="mailer_urlpaths_recovery">`MAILER_URLPATHS_RECOVERY`</span> | `string` | URL path to use in the password reset email. Defaults to `/`. |
+| <span id="mailer_urlpaths_email_change">`MAILER_URLPATHS_EMAIL_CHANGE`</span> | `string` | URL path to use in the email change confirmation email. Defaults to `/`. |
+| <span id="mailer_subjects_invite">`MAILER_SUBJECTS_INVITE`</span> | `string` | Email subject to use for user invite. Defaults to `You have been invited`. |
+| <span id="mailer_subjects_confirmation">`MAILER_SUBJECTS_CONFIRMATION`</span> | `string` | Email subject to use for signup confirmation. Defaults to `Confirm Your Signup`. |
+| <span id="mailer_subjects_recovery">`MAILER_SUBJECTS_RECOVERY`</span> | `string` | Email subject to use for password reset. Defaults to `Reset Your Password`. |
+| <span id="mailer_subjects_magiclink">`MAILER_SUBJECTS_MAGIC_LINK`</span> | `string` | Email subject to use for magic link email. Defaults to `Your Magic Link`. |
+| <span id="mailer_subjects_email_change">`MAILER_SUBJECTS_EMAIL_CHANGE`</span> | `string` | Email subject to use for email change confirmation. Defaults to `Confirm Email Change`. |
+
+### Email Templates
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_templates_invite">`MAILER_TEMPLATES_INVITE`</span> | `string` | URL path to an email template to use when inviting a user. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. |
Default Content (if template is unavailable):
-```html
-<h2>You have been invited</h2>
-
+```html
+<h2>You have been invited</h2>
<p>
You have been invited to create a user on {{ .SiteURL }}. Follow this link to accept the invite:
</p>
<p><a href="{{ .ConfirmationURL }}">Accept the invite</a></p>
```
-`MAILER_TEMPLATES_CONFIRMATION` - `string`
-
-URL path to an email template to use when confirming a signup.
-`SiteURL`, `Email`, and `ConfirmationURL` variables are available.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_templates_confirmation">`MAILER_TEMPLATES_CONFIRMATION`</span> | `string` | URL path to an email template to use when confirming a signup. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. |
Default Content (if template is unavailable):
@@ -406,10 +155,9 @@ Default Content (if template is unavailable):
<p><a href="{{ .ConfirmationURL }}">Confirm your mail</a></p>
```
-`MAILER_TEMPLATES_RECOVERY` - `string`
-
-URL path to an email template to use when resetting a password.
-`SiteURL`, `Email`, and `ConfirmationURL` variables are available.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_templates_recovery">`MAILER_TEMPLATES_RECOVERY`</span> | `string` | URL path to an email template to use when resetting a password. `SiteURL`, `Email`, and `ConfirmationURL` variables are available. |
Default Content (if template is unavailable):
@@ -420,10 +168,9 @@ Default Content (if template is unavailable):
<p><a href="{{ .ConfirmationURL }}">Reset Password</a></p>
```
-`MAILER_TEMPLATES_MAGIC_LINK` - `string`
-
-URL path to an email template to use when sending magic link.
-`SiteURL`, `Email`, and `ConfirmationURL` variables are available.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_templates_magic_link">`MAILER_TEMPLATES_MAGIC_LINK`</span> | `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):
@@ -434,10 +181,9 @@ Default Content (if template is unavailable):
<p><a href="{{ .ConfirmationURL }}">Log In</a></p>
```
-`MAILER_TEMPLATES_EMAIL_CHANGE` - `string`
-
-URL path to an email template to use when confirming the change of an email address.
-`SiteURL`, `Email`, `NewEmail`, and `ConfirmationURL` variables are available.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="mailer_templates_email_change">`MAILER_TEMPLATES_EMAIL_CHANGE`</span> | `string` | URL path to an email template to use when confirming the change of an email address. `SiteURL`, `Email`, `NewEmail` and `ConfirmationURL` variables are available. |
Default Content (if template is unavailable):
@@ -448,549 +194,62 @@ Default Content (if template is unavailable):
<p><a href="{{ .ConfirmationURL }}">Change Email</a></p>
```
-`WEBHOOK_URL` - `string`
-
-Url of the webhook receiver endpoint. This will be called when events like `validate`, `signup` or `login` occur.
-
-`WEBHOOK_SECRET` - `string`
-
-Shared secret to authorize webhook requests. This secret signs the [JSON Web Signature](https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41) of the request. You _should_ use this to verify the integrity of the request. Otherwise others can feed your webhook receiver with fake data.
-
-`WEBHOOK_RETRIES` - `number`
-
-How often GoTrue should try a failed hook.
-
-`WEBHOOK_TIMEOUT_SEC` - `number`
-
-Time between retries (in seconds).
-
-`WEBHOOK_EVENTS` - `list`
-
-Which events should trigger a webhook. You can provide a comma separated list.
-For example to listen to all events, provide the values `validate,signup,login`.
-
### Phone Auth
-`SMS_AUTOCONFIRM` - `bool`
-
-If you do not require phone confirmation, you may set this to `true`. Defaults to `false`.
-
-`SMS_MAX_FREQUENCY` - `number`
-
-Controls the minimum amount of time that must pass before sending another sms otp. The value is the number of seconds. Defaults to 60 (1 minute)).
+These options control the sms-es sent from gotrue.
-`SMS_OTP_EXP` - `number`
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="sms_autoconfirm">`SMS_AUTOCONFIRM`</span> | `bool` | If you do not require phone confirmation, you may set this to `true`. Defaults to `false`. |
+| <span id="sms_max_frequency">`SMS_MAX_FREQUENCY`</span> | `number` | Controls the minimum amount of time that must pass before sending another sms otp. The value is the number of seconds. Defaults to 60 (1 minute)). |
+| <span id="sms_otp_exp">`SMS_OTP_EXP`</span> | `number` | Controls the duration an sms otp is valid for. |
+| <span id="sms_otp_length">`SMS_OTP_LENGTH`</span> | `number` | Controls the number of digits of the sms otp sent. Valid otp lengths are between [6 - 10] digits |
+| <span id="sms_provider">`SMS_PROVIDER`</span> | `string` | Available options are: `twilio`, `messagebird`, `textlocal`, and `vonage` |
-Controls the duration an sms otp is valid for.
+If you're using twilio, you can obtain your credentials from the [twilio dashboard](https://www.twilio.com/docs/usage/requests-to-twilio#credentials):
-`SMS_OTP_LENGTH` - `number`
+You can find the `SMS_TWILIO_ACCOUNT_SID` and `SMS_TWILIO_AUTH_TOKEN` in the account info page of the twilio console dashboard.
-Controls the number of digits of the sms otp sent.
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="twilio_account_sid">`SMS_TWILIO_ACCOUNT_SID`</span> | `string` | Your twilio account string identifier (SID). |
+| <span id="twilio_auth_token">`SMS_TWILIO_AUTH_TOKEN`</span> | `string` | Your twilio auth token. |
+| <span id="twilio_message_service_sid">`SMS_TWILIO_MESSAGE_SERVICE_SID`</span> | `string` | Your twilio sender mobile number |
-`SMS_PROVIDER` - `string`
-Available options are: `twilio`, `messagebird`, `textlocal`, and `vonage`
+If you're using messagebird, you can obtain your credentials from the [messagebird dashboard](https://dashboard.messagebird.com/en/developers/access):
-Then you can use your [twilio credentials](https://www.twilio.com/docs/usage/requests-to-twilio#credentials):
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="messagebird_access_key">`SMS_MESSAGEBIRD_ACCESS_KEY`</span> | `string` | Your messagebird access key. |
+| <span id="messagebird_originator">`SMS_MESSAGEBIRD_ORIGINATOR`</span> | `string` | Your messagebird sender phone number with + or company name. |
-- `SMS_TWILIO_ACCOUNT_SID`
-- `SMS_TWILIO_AUTH_TOKEN`
-- `SMS_TWILIO_MESSAGE_SERVICE_SID` - can be set to your twilio sender mobile number
-
-Or Messagebird credentials, which can be obtained in the [Dashboard](https://dashboard.messagebird.com/en/developers/access):
-
-- `SMS_MESSAGEBIRD_ACCESS_KEY` - your Messagebird access key
-- `SMS_MESSAGEBIRD_ORIGINATOR` - SMS sender (your Messagebird phone number with + or company name)
-
-### CAPTCHA
-
-- If enabled, CAPTCHA will check the request body for the `hcaptcha_token` field and make a verification request to the CAPTCHA provider.
-
-`SECURITY_CAPTCHA_ENABLED` - `string`
-
-Whether captcha middleware is enabled
-
-`SECURITY_CAPTCHA_PROVIDER` - `string`
-
-for now the only option supported is: `hcaptcha`
-
-- `SECURITY_CAPTCHA_SECRET` - `string`
-- `SECURITY_CAPTCHA_TIMEOUT` - `string`
-
-Retrieve from hcaptcha account
-
-### Reauthentication
-
-`SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION` - `bool`
-
-Enforce reauthentication on password update.
-
-## Endpoints
-
-GoTrue exposes the following endpoints:
-
-### **GET /settings**
-
-Returns the publicly available settings for this gotrue instance.
-
-```json
-{
- "external": {
- "apple": true,
- "azure": true,
- "bitbucket": true,
- "discord": true,
- "facebook": true,
- "github": true,
- "gitlab": true,
- "google": true,
- "keycloak": true,
- "linkedin": true,
- "notion": true,
- "slack": true,
- "spotify": true,
- "twitch": true,
- "twitter": true,
- "workos": true
- },
- "disable_signup": false,
- "autoconfirm": false
-}
-```
-
-### **POST, PUT /admin/users/<user_id>**
-
-Creates (POST) or Updates (PUT) the user based on the `user_id` specified. The `ban_duration` field accepts the following time units: "ns", "us", "ms", "s", "m", "h". See [`time.ParseDuration`](https://pkg.go.dev/time#ParseDuration) for more details on the format used.
-
-```js
-headers:
-{
- "Authorization": "Bearer eyJhbGciOiJI...M3A90LCkxxtX9oNP9KZO" // admin role required
-}
-
-body:
-{
- "role": "test-user",
- "email": "[email protected]",
- "phone": "12345678",
- "password": "secret", // only if type = signup
- "email_confirm": true,
- "phone_confirm": true,
- "user_metadata": {},
- "app_metadata": {},
- "ban_duration": "24h" or "none" // to unban a user
-}
-```
-
-### **POST /admin/generate_link**
-
-Returns the corresponding email action link based on the type specified.
-
-```js
-headers:
-{
- "Authorization": "Bearer eyJhbGciOiJI...M3A90LCkxxtX9oNP9KZO" // admin role required
-}
-
-body:
-{
- "type": "signup" or "magiclink" or "recovery" or "invite",
- "email": "[email protected]",
- "password": "secret", // only if type = signup
- "data": {
- ...
- }, // only if type = signup
- "redirect_to": "https://supabase.io" // Redirect URL to send the user to after an email action. Defaults to SITE_URL.
-
-}
-```
-
-Returns
-
-```js
-{
- "action_link": "http://localhost:9999/verify?token=TOKEN&type=TYPE&redirect_to=REDIRECT_URL",
- ...
-}
-```
-
-### **POST /signup**
-
-Register a new user with an email and password.
-
-```js
-{
- "email": "[email protected]",
- "password": "secret"
-}
-```
-
-returns:
-
-```json
-{
- "id": "11111111-2222-3333-4444-5555555555555",
- "email": "[email protected]",
- "confirmation_sent_at": "2016-05-15T20:49:40.882805774-07:00",
- "created_at": "2016-05-15T19:53:12.368652374-07:00",
- "updated_at": "2016-05-15T19:53:12.368652374-07:00"
-}
-
-// if sign up is a duplicate then faux data will be returned
-// as to not leak information about whether a given email
-// has an account with your service or not
-```
-
-Register a new user with a phone number and password.
-
-```js
-{
- "phone": "12345678", // follows the E.164 format
- "password": "secret"
-}
-```
-
-Returns:
-
-```json
-{
- "id": "11111111-2222-3333-4444-5555555555555", // if duplicate sign up, this ID will be faux
- "phone": "12345678",
- "confirmation_sent_at": "2016-05-15T20:49:40.882805774-07:00",
- "created_at": "2016-05-15T19:53:12.368652374-07:00",
- "updated_at": "2016-05-15T19:53:12.368652374-07:00"
-}
-```
-
-if AUTOCONFIRM is enabled and the sign up is a duplicate, then the endpoint will return:
-
-```
-{
- "code":400,
- "msg":"User already registered"
-}
-```
-
-### **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
-{
- "email": "[email protected]"
-}
-```
-
-Returns:
-
-```json
-{
- "id": "11111111-2222-3333-4444-5555555555555",
- "email": "[email protected]",
- "confirmation_sent_at": "2016-05-15T20:49:40.882805774-07:00",
- "created_at": "2016-05-15T19:53:12.368652374-07:00",
- "updated_at": "2016-05-15T19:53:12.368652374-07:00",
- "invited_at": "2016-05-15T19:53:12.368652374-07:00"
-}
-```
-
-### **POST /verify**
-
-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` is required for signup verification if no existing password exists.
-
-Returns:
-
-```json
-{
- "access_token": "jwt-token-representing-the-user",
- "token_type": "bearer",
- "expires_in": 3600,
- "refresh_token": "a-refresh-token",
- "type": "signup | recovery | invite"
-}
-```
-
-Verify a phone signup or sms otp. Type should be set to `sms`.
-
-```json
-{
- "type": "sms",
- "token": "confirmation-otp-delivered-in-sms",
- "redirect_to": "https://supabase.io",
- "phone": "phone-number-sms-otp-was-delivered-to"
-}
-```
-
-Returns:
-
-```json
-{
- "access_token": "jwt-token-representing-the-user",
- "token_type": "bearer",
- "expires_in": 3600,
- "refresh_token": "a-refresh-token"
-}
-```
-
-### **GET /verify**
-
-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",
- "redirect_to": "https://supabase.io"
-}
-```
-
-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&type=invite
-```
-
-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 /otp**
-
-One-Time-Password. Will deliver a magiclink or sms otp to the user depending on whether the request body contains an "email" or "phone" key.
-
-If `"create_user": true`, user will not be automatically signed up if the user doesn't exist.
-
-```js
-{
- "phone": "12345678" // follows the E.164 format
- "create_user": true
-}
-
-OR
-
-// exactly the same as /magiclink
-{
- "email": "[email protected]"
- "create_user": true
-}
-```
-
-Returns:
-
-```
-{}
-```
-
-### **POST /magiclink** (recommended to use /otp instead. See above.)
-
-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 protected]"
-}
-```
-
-Returns:
-
-```json
-{}
-```
-
-when clicked the magic link will redirect the user to `<SITE_URL>#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
-{
- "email": "[email protected]"
-}
-```
-
-Returns:
-
-```json
-{}
-```
-
-### **POST /token**
-
-This is an OAuth2 endpoint that currently implements
-the password and refresh_token grant types
-
-query params:
-
-```
-?grant_type=password
-```
-
-body:
-
-```json
-// Email login
-{
- "email": "[email protected]",
- "password": "somepassword"
-}
-
-// Phone login
-{
- "phone": "12345678",
- "password": "somepassword"
-}
-```
-
-or
-
-query params:
-
-```
-grant_type=refresh_token
-```
-
-body:
-
-```json
-{
- "refresh_token": "a-refresh-token"
-}
-```
-
-Once you have an access token, you can access the methods requiring authentication
-by settings the `Authorization: Bearer YOUR_ACCESS_TOKEN_HERE` header.
-
-Returns:
-
-```json
-{
- "access_token": "jwt-token-representing-the-user",
- "token_type": "bearer",
- "expires_in": 3600,
- "refresh_token": "a-refresh-token"
-}
-```
-
-### **GET /user**
-
-Get the JSON object for the logged in user (requires authentication)
-
-Returns:
-
-```json
-{
- "id": "11111111-2222-3333-4444-5555555555555",
- "email": "[email protected]",
- "confirmation_sent_at": "2016-05-15T20:49:40.882805774-07:00",
- "created_at": "2016-05-15T19:53:12.368652374-07:00",
- "updated_at": "2016-05-15T19:53:12.368652374-07:00"
-}
-```
-
-### **PUT /user**
-
-Update a user (Requires authentication). Apart from changing email/password, this
-method can be used to set custom user data. Changing the email will result in a magiclink being sent out.
-
-```json
-{
- "email": "[email protected]",
- "password": "new-password",
- "data": {
- "key": "value",
- "number": 10,
- "admin": false
- }
-}
-```
-
-Returns:
-
-```json
-{
- "id": "11111111-2222-3333-4444-5555555555555",
- "email": "[email protected]",
- "email_change_sent_at": "2016-05-15T20:49:40.882805774-07:00",
- "created_at": "2016-05-15T19:53:12.368652374-07:00",
- "updated_at": "2016-05-15T19:53:12.368652374-07:00"
-}
-```
-
-If `GOTRUE_SECURITY_UPDATE_PASSWORD_REQUIRE_REAUTHENTICATION` is enabled, the user will need to reauthenticate first.
-
-```json
-{
- "password": "new-password",
- "nonce": "123456"
-}
-```
-
-### **GET /reauthenticate**
-
-Sends a nonce to the user's email (preferred) or phone. This endpoint requires the user to be logged in / authenticated first. The user needs to have either an email or phone number for the nonce to be sent successfully.
-
-```json
-headers: {
- "Authorization" : "Bearer eyJhbGciOiJI...M3A90LCkxxtX9oNP9KZO"
-}
-```
-
-### **POST /logout**
-
-Logout a user (Requires authentication).
-
-This will revoke all refresh tokens for the user. Remember that the JWT tokens
-will still be valid for stateless auth until they expires.
-
-### **GET /authorize**
-
-Get access_token from external oauth provider
+### Logging
-query params:
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="log_level">`LOG_LEVEL`</span> | `string` | Controls what log levels are output. Choose from `panic`, `fatal`, `error`, `warn`, `info`, or `debug`. Defaults to `info`. |
+| <span id="log_file">`LOG_FILE`</span> | `string` | If you wish logs to be written to a file, set `log_file` to a valid file path. |
-```
-provider=apple | azure | bitbucket | discord | facebook | github | gitlab | google | keycloak | linkedin | notion | slack | spotify | twitch | twitter | workos
-
-scopes=<optional additional scopes depending on the provider (email and name are requested by default)>
-```
+### Opentracing
-Redirects to provider and then to `/callback`
+Currently, only the Datadog tracer is supported.
-For apple specific setup see: https://github.com/supabase/gotrue#apple-oauth
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="tracing_enabled">`TRACING_ENABLED`</span> | `bool` | Whether tracing is enabled or not. Defaults to `false`. |
+| <span id="tracing_host">`TRACING_HOST`</span> | `string` | The tracing destination. (e.g. `GOTRUE_TRACING_HOST=127.0.0.1`) |
+| <span id="tracing_port">`TRACING_PORT`</span> | `int` | The port for the tracing host. |
+| <span id="tracing_tags">`TRACING_TAGS`</span> | `string` | A comma separated list of key:value pairs. These key value pairs will be added as tags to all opentracing spans. (e.g. `GOTRUE_TRACING_TAGS="tag1:value1,tag2:value2"`) |
+| <span id="service_name">`SERVICE_NAME`</span> | `string` | The name to use for the service. |
-### **GET /callback**
+### Webhooks
-External provider should redirect to here
+| Parameter | Type | Description |
+| :-------- | :------- | :------------------------- |
+| <span id="webhook_url">`WEBHOOK_URL`</span> | `string` | Url of the webhook receiver endpoint. This will be called when events like `validate`, `signup` or `login` occur. |
+| <span id="webhook_secret">`WEBHOOK_SECRET`</span> | `string` | Shared secret to authorize webhook requests. This secret signs the [JSON Web Signature](https://tools.ietf.org/html/draft-ietf-jose-json-web-signature-41) of the request. You _should_ use this to verify the integrity of the request. Otherwise others can feed your webhook receiver with fake data. |
+| <span id="webhook_retries">`WEBHOOK_RETRIES`</span> | `number` | How often GoTrue should try a failed hook. |
+| <span id="webhook_timeout_sec">`WEBHOOK_TIMEOUT_SEC`</span> | `number` | Time between retries (in seconds). |
+| <span id="webhook_events">`WEBHOOK_EVENTS`</span> | `list` | Which events should trigger a webhook. You can provide a comma separated list. For example to listen to all events, provide the values `validate,signup,login`. |
-Redirects to `<GOTRUE_SITE_URL>#access_token=<access_token>&refresh_token=<refresh_token>&provider_token=<provider_oauth_token>&expires_in=3600&provider=<provider_name>`
-If additional scopes were requested then `provider_token` will be populated, you can use this to fetch additional data from the provider or interact with their services
diff --git a/web/package-lock.json b/web/package-lock.json
index b9cbc2c55f3..ddacffa51b3 100644
--- a/web/package-lock.json
+++ b/web/package-lock.json
@@ -8719,16 +8719,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
- "node_modules/lodash.assignin": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/lodash.assignin/-/lodash.assignin-4.2.0.tgz",
- "integrity": "sha1-uo31+4QesKPoBEIysOJjqNxqKKI="
- },
- "node_modules/lodash.bind": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/lodash.bind/-/lodash.bind-4.2.1.tgz",
- "integrity": "sha1-euMBfpOWIqwxt9fX3LGzTbFpDTU="
- },
"node_modules/lodash.curry": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz",
@@ -8739,66 +8729,16 @@
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
"integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168="
},
- "node_modules/lodash.defaults": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
- "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw="
- },
- "node_modules/lodash.filter": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz",
- "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4="
- },
- "node_modules/lodash.flatten": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
- "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8="
- },
"node_modules/lodash.flow": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz",
"integrity": "sha1-h79AKSuM+D5OjOGjrkIJ4gBxZ1o="
},
- "node_modules/lodash.foreach": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz",
- "integrity": "sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM="
- },
- "node_modules/lodash.map": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz",
- "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM="
- },
"node_modules/lodash.memoize": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4="
},
- "node_modules/lodash.merge": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
- },
- "node_modules/lodash.pick": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz",
- "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM="
- },
- "node_modules/lodash.reduce": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz",
- "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs="
- },
- "node_modules/lodash.reject": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.reject/-/lodash.reject-4.6.0.tgz",
- "integrity": "sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU="
- },
- "node_modules/lodash.some": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
- "integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
- },
"node_modules/lodash.uniq": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@@ -10800,6 +10740,18 @@
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
+ "node_modules/react-loadable": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/react-loadable/-/react-loadable-5.5.0.tgz",
+ "integrity": "sha512-C8Aui0ZpMd4KokxRdVAm2bQtI03k2RMRNzOB+IipV3yxFTSVICv7WoUr5L9ALB5BmKO1iHgZtWM8EvYG83otdg==",
+ "peer": true,
+ "dependencies": {
+ "prop-types": "^15.5.0"
+ },
+ "peerDependencies": {
+ "react": "*"
+ }
+ },
"node_modules/react-loadable-ssr-addon-v5-slorber": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz",
@@ -15859,6 +15811,7 @@
},
"@kiwicopple/prism-react-renderer": {
"version": "git+ssh://[email protected]/kiwicopple/prism-react-renderer.git#4a09100a587bce2d94d7ac8ed3564a61c6e70781",
+ "integrity": "sha512-QluokmJkMoHOwahIBN34hTG5n03kFyJ0REDq4mkf0o05JUC61ikXQsPNXtynASqoZRW7A+bKVNT65kCtUfgZlQ==",
"from": "@kiwicopple/prism-react-renderer@https://github.com/kiwicopple/prism-react-renderer.git",
"requires": {
"prismjs": "^1.22.0"
@@ -20417,16 +20370,6 @@
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
"integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg=="
},
- "lodash.assignin": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/lodash.assignin/-/lodash.assignin-4.2.0.tgz",
- "integrity": "sha1-uo31+4QesKPoBEIysOJjqNxqKKI="
- },
- "lodash.bind": {
- "version": "4.2.1",
- "resolved": "https://registry.npmjs.org/lodash.bind/-/lodash.bind-4.2.1.tgz",
- "integrity": "sha1-euMBfpOWIqwxt9fX3LGzTbFpDTU="
- },
"lodash.curry": {
"version": "4.1.1",
"resolved": "https://registry.npmjs.org/lodash.curry/-/lodash.curry-4.1.1.tgz",
@@ -20437,66 +20380,16 @@
"resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz",
"integrity": "sha1-gteb/zCmfEAF/9XiUVMArZyk168="
},
- "lodash.defaults": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/lodash.defaults/-/lodash.defaults-4.2.0.tgz",
- "integrity": "sha1-0JF4cW/+pN3p5ft7N/bwgCJ0WAw="
- },
- "lodash.filter": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.filter/-/lodash.filter-4.6.0.tgz",
- "integrity": "sha1-ZosdSYFgOuHMWm+nYBQ+SAtMSs4="
- },
- "lodash.flatten": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.flatten/-/lodash.flatten-4.4.0.tgz",
- "integrity": "sha1-8xwiIlqWMtK7+OSt2+8kCqdlph8="
- },
"lodash.flow": {
"version": "3.5.0",
"resolved": "https://registry.npmjs.org/lodash.flow/-/lodash.flow-3.5.0.tgz",
"integrity": "sha1-h79AKSuM+D5OjOGjrkIJ4gBxZ1o="
},
- "lodash.foreach": {
- "version": "4.5.0",
- "resolved": "https://registry.npmjs.org/lodash.foreach/-/lodash.foreach-4.5.0.tgz",
- "integrity": "sha1-Gmo16s5AEoDH8G3d7DUWWrJ+PlM="
- },
- "lodash.map": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.map/-/lodash.map-4.6.0.tgz",
- "integrity": "sha1-dx7Hg540c9nEzeKLGTlMNWL09tM="
- },
"lodash.memoize": {
"version": "4.1.2",
"resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz",
"integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4="
},
- "lodash.merge": {
- "version": "4.6.2",
- "resolved": "https://registry.npmjs.org/lodash.merge/-/lodash.merge-4.6.2.tgz",
- "integrity": "sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ=="
- },
- "lodash.pick": {
- "version": "4.4.0",
- "resolved": "https://registry.npmjs.org/lodash.pick/-/lodash.pick-4.4.0.tgz",
- "integrity": "sha1-UvBWEP/53tQiYRRB7R/BI6AwAbM="
- },
- "lodash.reduce": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.reduce/-/lodash.reduce-4.6.0.tgz",
- "integrity": "sha1-8atrg5KZrUj3hKu/R2WW8DuRTTs="
- },
- "lodash.reject": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.reject/-/lodash.reject-4.6.0.tgz",
- "integrity": "sha1-gNZJLcFHCGS79YNTO2UfQqn1JBU="
- },
- "lodash.some": {
- "version": "4.6.0",
- "resolved": "https://registry.npmjs.org/lodash.some/-/lodash.some-4.6.0.tgz",
- "integrity": "sha1-G7nzFO9ri63tE7VJFpsqlF62jk0="
- },
"lodash.uniq": {
"version": "4.5.0",
"resolved": "https://registry.npmjs.org/lodash.uniq/-/lodash.uniq-4.5.0.tgz",
@@ -21880,6 +21773,15 @@
"resolved": "https://registry.npmjs.org/react-lifecycles-compat/-/react-lifecycles-compat-3.0.4.tgz",
"integrity": "sha512-fBASbA6LnOU9dOU2eW7aQ8xmYBSXUIWr+UmF9b1efZBazGNO+rcXT/icdKnYm2pTwcRylVUYwW7H1PHfLekVzA=="
},
+ "react-loadable": {
+ "version": "5.5.0",
+ "resolved": "https://registry.npmjs.org/react-loadable/-/react-loadable-5.5.0.tgz",
+ "integrity": "sha512-C8Aui0ZpMd4KokxRdVAm2bQtI03k2RMRNzOB+IipV3yxFTSVICv7WoUr5L9ALB5BmKO1iHgZtWM8EvYG83otdg==",
+ "peer": true,
+ "requires": {
+ "prop-types": "^15.5.0"
+ }
+ },
"react-loadable-ssr-addon-v5-slorber": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/react-loadable-ssr-addon-v5-slorber/-/react-loadable-ssr-addon-v5-slorber-1.0.1.tgz",
diff --git a/web/package.json b/web/package.json
index 72777af1c46..335e2499296 100644
--- a/web/package.json
+++ b/web/package.json
@@ -4,7 +4,7 @@
"private": true,
"scripts": {
"serve": "npm run start",
- "start": "docusaurus start --port 3005",
+ "start": "docusaurus start --port 3006",
"build": "npm run gen:all && docusaurus build",
"swizzle": "docusaurus swizzle",
"traction": "node traction.js",
diff --git a/web/spec/combined.json b/web/spec/combined.json
index 02d926a7d22..6b69c47f2c7 100644
--- a/web/spec/combined.json
+++ b/web/spec/combined.json
@@ -63359,7 +63359,7 @@
"isExported": true
},
"comment": {
- "text": "A unique identifier for the bucket you are creating.\n"
+ "text": "A unique identifier for the bucket you are updating.\n"
},
"type": {
"type": "intrinsic",
@@ -64901,7 +64901,7 @@
"isExported": true
},
"comment": {
- "text": "A unique identifier for the bucket you are creating.\n"
+ "text": "A unique identifier for the bucket you are updating.\n"
},
"type": {
"type": "intrinsic",
diff --git a/web/spec/storage.json b/web/spec/storage.json
index 82c0be5f743..596f8be4763 100644
--- a/web/spec/storage.json
+++ b/web/spec/storage.json
@@ -1267,7 +1267,7 @@
"isExported": true
},
"comment": {
- "text": "A unique identifier for the bucket you are creating.\n"
+ "text": "A unique identifier for the bucket you are updating.\n"
},
"type": {
"type": "intrinsic",
@@ -2809,7 +2809,7 @@
"isExported": true
},
"comment": {
- "text": "A unique identifier for the bucket you are creating.\n"
+ "text": "A unique identifier for the bucket you are updating.\n"
},
"type": {
"type": "intrinsic",