Zirelco
Zirelco

Reputation: 13

React JS / Clerk / Supabase: auth.getUser returns an error: Auth Session Missing

what am I doing wrong. Also, trying to integrate Clerk.com, Supabase into my react application (not next.js).

But constantly get this error:

auth.getUser returns an error: Auth Session Missing

Here is my code:

Codesandbox

In Clerk I use this template:

{
    "claims": {
        "aud": "authenticated",
        "sub": "{{user.id}}",
        "role": "authenticated",
        "email": "{{user.primary_email_address}}",
        "app_metadata": {
            "provider": "clerk"
        },
        "user_metadata": {
            "email": "{{user.primary_email_address}}"
        }
    }
}

Upvotes: 0

Views: 61

Answers (0)

Related Questions