The elixir supabase library is community developed (Thank you!), but not quite as easy to work with as the javascript or Python variants.
I hit a tricky issue today.
I wanted to test some of my live views.
In my routerI have
pipeline :browser do plug :accepts, ["html"] plug :fetch_session plug :fetch_live_flash plug :put_root_layout, html: {DreamersdashWeb.Layouts, :root} plug :protect_from_forgery plug :put_secure_browser_headers plug :fetch_current_user plug :fetch_current_profile end pipeline :admin_browser do plug :browser plug :require_admin_profile end pipeline :photo_manager_browser do plug :browser plug :require_photo_manager_profile end # ... more scope "/", DreamersdashWeb do pipe_through :photo_manager_browser live_session :authenticated_photo_manager, on_mount: [ {DreamersdashWeb.Auth, :mount_current_user}, {DreamersdashWeb.Auth, :ensure_authenticated}, {DreamersdashWeb.Auth, :load_current_profile}, {DreamersdashWeb.Auth, :require_photo_manager_profile} ] do live "/admin/photos", PhotoReviewLive.Index, :index end end Then In my Dreamersdash.Auth module I have:
...