Auth0 Home Blog Docs

Token auth0 with API

auth0
access-token
#1

I have the Auth0 Management API configured with my front-end (Angular).

Each user logged has a token. I want to use the token of Auth0 Management to validate each request,
so i get this token and i sent it to my Backend (Laravel).

For this i´ve created a API in auth0 but when i send the token to my backend, it returns me “Invalid token audience expected”

#3

Hi @maurivilar!

Welcome to the Auth0 Community!

Are you requesting a token for the management API then trying to use it to access your backend API? That might explain the incorrect audience issue.

Thanks,
Dan