Skip to content

Commit

Permalink
Add anonymous sign-ins environment variables to readme and example.env (
Browse files Browse the repository at this point in the history
supabase#1515)

## What kind of change does this PR introduce?

Docs update

## What is the current behavior?

Currently, the README and example.env files don't contain the
environment variables to enable/disable anonymous sign-ins

## What is the new behavior?

Added "GOTRUE_EXTERNAL_ANONYMOUS_USERS_ENABLED" to README.md and
example.env
  • Loading branch information
ssudaraka authored Apr 5, 2024
1 parent 4df65af commit f8a947c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
7 changes: 6 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,6 @@ Default Content (if template is unavailable):
<p><a href="{{ .ConfirmationURL }}">Change Email</a></p>
```


### Phone Auth

`SMS_AUTOCONFIRM` - `bool`
Expand Down Expand Up @@ -717,6 +716,12 @@ Retrieve from hcaptcha or turnstile account

Enforce reauthentication on password update.

### Anonymous Sign-Ins

`GOTRUE_EXTERNAL_ANONYMOUS_USERS_ENABLED` - `bool`

Use this to enable/disable anonymous sign-ins.

## Endpoints

Auth exposes the following endpoints:
Expand Down
3 changes: 3 additions & 0 deletions example.env
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,9 @@ GOTRUE_EXTERNAL_ZOOM_CLIENT_ID=""
GOTRUE_EXTERNAL_ZOOM_SECRET=""
GOTRUE_EXTERNAL_ZOOM_REDIRECT_URI="http://localhost:9999/callback"

# Anonymous auth config
GOTRUE_EXTERNAL_ANONYMOUS_USERS_ENABLED="false"

# PKCE Config
GOTRUE_EXTERNAL_FLOW_STATE_EXPIRY_DURATION="300s"

Expand Down

0 comments on commit f8a947c

Please sign in to comment.