Skip to content

Supabase tutorial a little out of date #432

Open
@finallyblueskies

Description

I'm adding this here for the sake of others also following the Supabase tutorial having run into the same issues as I did. If you complete the basic steps of the tutorial and run the application you will run into some flavor of the client side error:

[PowerSyncRemote] Error: Closed. Original cause [Error: [AUTHORIZATION] Authorization failed
  Generate a new JWT secret on Supabase. Cause: unrecognized configuration parameter "app.settings.jwt_secret"
    (severity "ERROR", file "guc.c", line 5710, routine "find_option")].

This is because the tutorial is missing a step in light of recent Supabase changes. When setting up your instance connection and enabling Supabase auth, you must now specify the JWT token, which you can copy and paste from your Supabase API settings:

image

Having done that, if you'd previously run the test application you may notice that nothing is happening when you try and create todos - no errors, no logs, nothing. To fix this, make sure you terminate any workers spun up by the test application before refreshing the page. On a Chromium you can do this at chrome://inspect/#workers.

This will spin them up anew and dislodge whatever misconfiguration had occurred - you should then be able to test the app.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions