You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supabase auth isn't robust enough for our usage. Move to Clerk.
Supabase auth primitives are quite low-level and a lot of the authentication logic has to be managed directly by us
Handling sessions and middleware is cumbersome
Implementation
Leverage middleware to decouple auth logic from application logic
This means we should only use redirects where necessary
Use Axios interceptors to apply authentication for all backend requests
Offload onboarding and new user flow responsibilities to custom Clerk publicMetadata for each user, and handled within a /onboarding component
Tasks
Migrate sign in/up page
Replaced these with Clerk builtins
Migrate middleware.ts
Migrate all supabase.auth usage to Clerk alternative
Update onboarding flow (creating first workflow) to use Clerk onboarding middleware
Update FastAPI backend
Update fastapi auth dependencies?
How to handle authing sessions
[v0] No need to replace Supabase as a DB provider, but decouple Supabase dependency
[v1] Replace supabase with generic postgres
Allow passing of TRACECAT__DISABLE_AUTH build flag to disable auth
This works nicely because we've centralized (almost) all auth logic into the Axios interceptor. We can conditionally apply the authenticated interceptor at application startup.
Update backend to change authentication strategy based on TRACECAT__DISABLE_AUTH flag
The text was updated successfully, but these errors were encountered:
Motivation
Implementation
publicMetadata
for each user, and handled within a/onboarding
componentTasks
middleware.ts
supabase.auth
usage to Clerk alternativeTRACECAT__DISABLE_AUTH
build flag to disable authTRACECAT__DISABLE_AUTH
flagThe text was updated successfully, but these errors were encountered: