Hello @koheikameyama,
If you are calling the management API, you need to use your regular Auth0 domain instead of the custom domain. Would you be able to replace the fetch URL in your ‘get accessToken’ snippet to ${tenantName} and test it out?
Thanks!