Hello,
I’m using Auth0 GO SDK to perform some user management calls like create or update user.
I can instantiate management client without any issues.
options := management.WithClientCredentialsAndAudience("client_id", "client_sec", "aud")
m, err := management.New("domain_url", options)
if err != nil {
log.Error().Msgf("failed to initialize Auth0 client: %s", err.Error())
return nil, err
}
But when I try to use to make some API calls (like create user for instance), it returns the following error:
user := &management.User{
Email: &req.Email,
}
err := m.User.Create(user)
Error message: failed to send the request: Post \"https://domain-url/api/v2/users\": oauth2: cannot fetch token: 404 Not Found\nResponse: Not found., Http status code: 500