Auth0 token not RS256

I am working on a project which uses Django backend and ReactJS frontend. I had initially build my own authentication system but now, I want to replace that with auth0. I have followed the following docs to integrate auth0:

ReactJS: Auth0 React SDK Quickstarts: Add Login to your React App

Django: Auth0 Django API SDK Quickstarts: Authorization

In the frontend, after user logins, I am trying to get the access token by using the getAccessTokenSilently() function. I have observed that the obtained token has empty payload and the “alg” is “dir” instead of “RS256”. How can I resolve this?

ReactJS Code:

function App() {
  const {
  } = useAuth0();

  useEffect(async () => {
    if (isAuthenticated && !isEmpty(user)) {
      let token = await getAccessTokenSilently({});
      console.log('token', token);
  }, [isAuthenticated, user]);

  if (!isLoading && !isAuthenticated) {
    return loginWithRedirect();

  if (isLoading || !apolloClient) {
    return (

  return (

function AppWrapper() {
  return (
    <Provider store={store}>
          <Alerts />
          <App />

ReactDOM.render(<AppWrapper />, document.getElementById("root"));

Sample JWT:


Screenshot from

Screenshot of Auth0 application settings:

I intend to use this access token when making backend API calls. As per the jwt_decode_token code snippet, I should be getting kid in the jwt payload which is not happening.

Hi @SreekarMouli98,

Welcome to the Auth0 Community!

It looks like you are seeing an encrypted token instead of a JWT. This because you are not passing an audience parameter to auth0 with the request to authorize.

This FAQ explains the difference between the tokens and links to resources explaining how to get a JWT token.