ĐARK々MÁTTERĐ
ZITADEL2y ago
4 replies
ĐARK々MÁTTER

How to get the user information from the token?

During callback from the authorize endpoint I exchange the code with token endpoint which gives me access_token, refresh_token and id_token. I have tried with all 3 tokens here, I am getting error https://zitadel.com/docs/apis/resources/auth/auth-service-get-my-user

{"code":16,"message":"Errors.Token.Invalid (AUTH-7fs1e)","details":[{"@type":"type.googleapis.com/zitadel.v1.ErrorDetail","id":"AUTH-7fs1e","message":"Errors.Token.Invalid"}]}% 

The user is signedin fromthe google external provider.
Returns the full user object of the authenticated user including the profile, email, phone, etc
ZITADEL Docs
Was this page helpful?