getAccessTokenSilently seems to ignore authorizationParams

The following function returns an error

{"statusCode":401,"error":"Unauthorized","message":"Bad audience: http://localhost:3001/admin"}

But in my code I specify a different audience.

const fetchListofAdmins = async ()=>{
      const token = await getAccessTokenSilently({
        authorizationParams: {
          scope: 'read:current_user'
      const options = {
        method: 'GET',
        url: `${MANAGEMENT_API}roles/${ROLE_ID}/users`,
        headers: {
          Authorization: `Bearer ${token}`
      const response = await axios.request(options)
      adminArray = (
    }catch(error) {

Where is getAccessTokenSilently() getting these audience strings from? :face_with_monocle:
My function returns the expected data when using the ‘Test’ token

Hey @gueronlj !

Interesting… Were you able to make any progress on this? Does the access token obtained via this function look as expected when you decode it at

I’ll also note that read:current_user isn’t the correct scope for /api/v2/roles/{id}/users

Keep us posted!