Skip to content

Commit

Permalink
fix: update supabase cli config
Browse files Browse the repository at this point in the history
  • Loading branch information
vhpx committed Apr 19, 2024
1 parent 503a2bc commit dc230dc
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions app/api/auth/otp/send/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export async function POST(request: Request) {
});

if (error) {
console.error(error);
return NextResponse.redirect(
`${requestUrl.origin}/login?error=${error.message}`,
{
Expand Down
6 changes: 3 additions & 3 deletions supabase/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ file_size_limit = "50MiB"
enabled = true
# The base URL of your website. Used as an allow-list for redirects and for constructing URLs used
# in emails.
site_url = "http://127.0.0.1:6868"
site_url = "http://localhost:6868"
# A list of *exact* URLs that auth providers are permitted to redirect to post authentication.
additional_redirect_urls = ["https://127.0.0.1:6868", "https://127.0.0.1:6868/auth/callback", "http://localhost:54321/auth/v1/callback"]
additional_redirect_urls = ["https://localhost:6868", "https://localhost:6868/auth/callback", "http://localhost:54321/auth/v1/callback"]
# How long tokens are valid for, in seconds. Defaults to 3600 (1 hour), maximum 604,800 (1 week).
jwt_expiry = 3600
# If disabled, the refresh token will never expire.
Expand All @@ -95,7 +95,7 @@ enable_signup = true
# addresses. If disabled, only the new email is required to confirm.
double_confirm_changes = true
# If enabled, users need to confirm their email address before signing in.
enable_confirmations = true
enable_confirmations = false

# Uncomment to customize email template
# [auth.email.template.invite]
Expand Down

0 comments on commit dc230dc

Please sign in to comment.