Auth0 Home Blog Docs

Unauthorized for get data all users with api management

jwt
api
management-api

#1

hello,
I try get data all users with api management with function getAll … I get jwt via API Explorer and expiration of this jwt is 86400 seconds (1 day )… Now when I try use this function I get this errror :

resulted in a `401 Unauthorized` response:
{"statusCode":401,"error":"Unauthorized","message":"Expired token received for JSON Web Token validation","attributes":{ (truncated...)

My question is how to takes token automatically in each use API or when token is expired I get other token automatically

thanks for advanced


#3

:wave: @med001 there are some good steps on how to generate a token automatically for the management API here https://auth0.com/docs/api/management/v2/tokens#automate-the-process. Can you give it a try and let us know if you have any issues?


#4

@kim.noel yes this is solution … thank you so much


#6

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.