Problem in meta and headers in useSelect request

I am not able to use my bearer token in meta and header while using useSelect

const { selectProps: organizationSelectProps } = useSelect({
resource: 'organizations',
optionLabel: 'name',
meta: {
headers: {
Authorization:
Bearer ${token}
,
},
},
});

The request returns 401 error code which means the token is not used by the request
Was this page helpful?