I have had a little bit of progress from the post ...
# help
f
I have had a little bit of progress from the post here https://github.com/supabase/supabase/issues/491#issuecomment-871863896 However, for my code below,
Copy code
js
const { createClient } = require('@supabase/supabase-js');

const access_token = "....." // I got this from my working React front end and validated the token from jwt.io, which can decode the token
const supabaseUrl = "https://......supabase.co"
const public_anon_key = "......"
const supabase = createClient(supabaseUrl,public_anon_key)

async function validateUser() {
        let {user, data, error} = await supabase.auth.api.getUser(access_token)
        console.log( {user, data, error})
}
validateUser()
I get
Copy code
{
  user: null,
  data: null,
  error: { message: 'Invalid token: signature is invalid', status: 401 }
}
n
Hello @Fehmi! This thread has been automatically created from your message in #843999948717555735 a ``few seconds ago``. Pinging @User so that they see this as well! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ... menu) and select Leave Thread to unsubscribe from future updates. Want to change the title? Use the
/title
command! We have solved your problem? Click the button below to archive it.
g
n
Fehmi (2022-05-01)