Hi!
I’m trying to retrieve the user_metadata with the Auth0.swift toolkit but i have a problem.
I’m using the following example that appear in the documentation:
Blockquote
Auth0
.users(token: idToken)
.get(“user identifier”, fields: [“user_metadata”], include: true)
.start { result in
switch result {
case .success(let userInfo):
print(“user: (userInfo)”)
case .failure(let error):
print(error)
}
}
Blockquote
But throws me this:
“Failed with unknown error [“attributes”: {
error = “Invalid token”;
}, “message”: Invalid token, “statusCode”: 401, “error”: Unauthorized]”
The token i’m using is the one thats is in the credentials returned from login.
Any suggestions? Thanks!