feat(supabase): auth, profile and roles services; professional columns on profiles; OAuth + TOTP config
- packages/supabase: signIn/signUp/OAuth/reset/updatePassword/signOut wrappers with a closed AuthFailure kind, fetch/update own profile, own platform roles - migration 20261011100000: practice_name, professional_title, siret (format-checked, column grants); pgTAP 009; database.types regenerated - config.toml: TOTP enroll/verify on, [auth.external.google|apple] via env(), wildcard redirect URLs - app config: authProviders (APP_AUTH_PROVIDERS / VITE_AUTH_PROVIDERS), entrypoint env.js, DEPLOY table - TODO: Step 7 plan
This commit is contained in:
1 parent
c746952d7f
commit
b10b227ee9
13 files changed
+427
-10
No files matched your search
@@ -21,6 +21,9 @@ TAGLINE=$(js_escape "${APP_TAGLINE:-Outils pour ostéopathes animaliers}")
|
||||
# The service-role key must never be set here.
|
||||
SUPABASE_URL=$(js_escape "${APP_SUPABASE_URL:-}")
|
||||
SUPABASE_ANON_KEY=$(js_escape "${APP_SUPABASE_ANON_KEY:-}")
|
||||
# OAuth buttons offered by the auth screens ("google,apple"); the Supabase
|
||||
# project must enable the same providers.
|
||||
AUTH_PROVIDERS=$(js_escape "${APP_AUTH_PROVIDERS:-}")
|
||||
|
||||
cat > "$ENV_JS" <<EOF
|
||||
window.__APP_CONFIG__ = {
|
||||
@@ -29,7 +32,8 @@ window.__APP_CONFIG__ = {
|
||||
footerName: "${FOOTER_NAME}",
|
||||
tagline: "${TAGLINE}",
|
||||
supabaseUrl: "${SUPABASE_URL}",
|
||||
supabaseAnonKey: "${SUPABASE_ANON_KEY}"
|
||||
supabaseAnonKey: "${SUPABASE_ANON_KEY}",
|
||||
authProviders: "${AUTH_PROVIDERS}"
|
||||
};
|
||||
EOF
|
||||
|
||||
|
||||
Reference in new issue
Block a user