Skip to content

Commit 2fe7961

Browse files
feat: enable identity linking in Supabase auth config
Co-Authored-By: john@hyprnote.com <john@hyprnote.com>
1 parent fd187e7 commit 2fe7961

File tree

2 files changed

+160
-1
lines changed

2 files changed

+160
-1
lines changed

supabase/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,4 @@
77
.env.local
88
.env.*.local
99

10-
config.toml
1110
signing_keys.json

supabase/config.toml

Lines changed: 160 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,160 @@
1+
project_id = 'hyprnote'
2+
3+
[analytics]
4+
backend = 'postgres'
5+
enabled = true
6+
port = 54327
7+
8+
[api]
9+
enabled = true
10+
extra_search_path = ['public', 'extensions']
11+
max_rows = 1000
12+
port = 54321
13+
schemas = ['public', 'graphql_public']
14+
15+
[api.tls]
16+
enabled = false
17+
18+
[auth]
19+
additional_redirect_urls = ['http://localhost:3000/callback/auth']
20+
enable_anonymous_sign_ins = false
21+
enable_manual_linking = true
22+
enable_refresh_token_rotation = true
23+
enable_signup = true
24+
enabled = true
25+
jwt_expiry = 3600
26+
minimum_password_length = 6
27+
password_requirements = ''
28+
refresh_token_reuse_interval = 10
29+
site_url = 'http://localhost:3000'
30+
31+
[auth.email]
32+
double_confirm_changes = true
33+
enable_confirmations = false
34+
enable_signup = true
35+
max_frequency = '1s'
36+
otp_expiry = 3600
37+
otp_length = 6
38+
secure_password_change = false
39+
40+
[auth.external]
41+
[auth.external.apple]
42+
client_id = ''
43+
email_optional = false
44+
enabled = false
45+
redirect_uri = ''
46+
secret = 'env(SUPABASE_AUTH_EXTERNAL_APPLE_SECRET)'
47+
skip_nonce_check = false
48+
url = ''
49+
50+
[auth.mfa]
51+
max_enrolled_factors = 10
52+
53+
[auth.mfa.phone]
54+
enroll_enabled = false
55+
max_frequency = '5s'
56+
otp_length = 6
57+
template = 'Your code is {{ .Code }}'
58+
verify_enabled = false
59+
60+
[auth.mfa.totp]
61+
enroll_enabled = false
62+
verify_enabled = false
63+
64+
[auth.oauth_server]
65+
allow_dynamic_registration = false
66+
authorization_url_path = '/oauth/consent'
67+
enabled = false
68+
69+
[auth.rate_limit]
70+
anonymous_users = 30
71+
email_sent = 2
72+
sign_in_sign_ups = 30
73+
sms_sent = 30
74+
token_refresh = 150
75+
token_verifications = 30
76+
web3 = 30
77+
78+
[auth.sms]
79+
enable_confirmations = false
80+
enable_signup = false
81+
max_frequency = '5s'
82+
template = 'Your code is {{ .Code }}'
83+
84+
[auth.sms.twilio]
85+
account_sid = ''
86+
auth_token = 'env(SUPABASE_AUTH_SMS_TWILIO_AUTH_TOKEN)'
87+
enabled = false
88+
message_service_sid = ''
89+
90+
[auth.third_party]
91+
[auth.third_party.auth0]
92+
enabled = false
93+
94+
[auth.third_party.aws_cognito]
95+
enabled = false
96+
97+
[auth.third_party.clerk]
98+
enabled = false
99+
100+
[auth.third_party.firebase]
101+
enabled = false
102+
103+
[auth.web3]
104+
[auth.web3.solana]
105+
enabled = false
106+
107+
[db]
108+
major_version = 17
109+
port = 54322
110+
shadow_port = 54320
111+
112+
[db.migrations]
113+
enabled = true
114+
schema_paths = []
115+
116+
[db.network_restrictions]
117+
allowed_cidrs = ['0.0.0.0/0']
118+
allowed_cidrs_v6 = ['::/0']
119+
enabled = false
120+
121+
[db.pooler]
122+
default_pool_size = 20
123+
enabled = false
124+
max_client_conn = 100
125+
pool_mode = 'transaction'
126+
port = 54329
127+
128+
[db.seed]
129+
enabled = true
130+
sql_paths = ['./seed.sql']
131+
132+
[edge_runtime]
133+
deno_version = 2
134+
enabled = true
135+
inspector_port = 8083
136+
policy = 'per_worker'
137+
138+
[experimental]
139+
orioledb_version = ''
140+
s3_access_key = 'env(S3_ACCESS_KEY)'
141+
s3_host = 'env(S3_HOST)'
142+
s3_region = 'env(S3_REGION)'
143+
s3_secret_key = 'env(S3_SECRET_KEY)'
144+
145+
[inbucket]
146+
enabled = true
147+
port = 54324
148+
149+
[realtime]
150+
enabled = true
151+
152+
[storage]
153+
enabled = true
154+
file_size_limit = '50MiB'
155+
156+
[studio]
157+
api_url = 'http://127.0.0.1'
158+
enabled = true
159+
openai_api_key = 'env(OPENAI_API_KEY)'
160+
port = 54323

0 commit comments

Comments
 (0)