AuthApiError using supabase-js from node
I'm trying to write some simple test scripts that sign in a test user and access the database, but I keep getting an auth error. It's like the client library isn't storing the auth token or something. The error happens in my Jest test script, but also just from a simple node script like:
The signInWithPassword() call returns the correct session and user, but the getUser() call returns the error:
And any other call seems to be unauthenticated.
The signInWithPassword() call returns the correct session and user, but the getUser() call returns the error:
AuthApiError: invalid claim: missing sub claimAnd any other call seems to be unauthenticated.