I have a protected router , with withApiAuthRequired and I need to call it from an other api which also have withApiAuthRequired. but I get :
{
error: 'not_authenticated',
description: 'The user does not have an active session or is not authenticated'
}
Do I have to pass a token with the fetch request like this? headers: {Authorization: Bearer ${accessToken}}
this did not work btw.