# Explain Successful exchange of authorization code for Access Token

**URL:** <https://community.auth0.com/t/explain-successful-exchange-of-authorization-code-for-access-token/93448>\
**Category:** Get Help\
**Tags:** logs, event, monitoring\
**Created:** [November 1, 2022, 1:30am UTC](https://community.auth0.com/t/explain-successful-exchange-of-authorization-code-for-access-token/93448 "2022-11-01T01:30:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rhuber](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/rhuber/32/33291_2.png) [@rhuber](https://community.auth0.com/u/rhuber)\
**Post date:** [November 1, 2022, 1:30am UTC](https://community.auth0.com/t/explain-successful-exchange-of-authorization-code-for-access-token/93448/1 "2022-11-01T01:30:33Z")

</div>

I’m trying to build out metrics and stats and I’m using auth0 log stream to do it. Each log is tagged with a type. Most are self-explanitory, but I’m trying to figure out what `Successful exchange of authorization code for Access Token` means.

---

<div class="post-metadata">

**Author:** ![gparascandolo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gparascandolo/32/38788_2.png) [@gparascandolo](https://community.auth0.com/u/gparascandolo)\
**Post date:** [November 1, 2022, 3:22pm UTC](https://community.auth0.com/t/explain-successful-exchange-of-authorization-code-for-access-token/93448/2 "2022-11-01T15:22:05Z")

</div>

hi @rhuber

Take a look at the following Authorization Code flows that are integrated with Auth0  
[Authorization Code Flow](https://auth0.com/docs/get-started/authentication-and-authorization-flow)  
[Authorization Code Flow with Proof Key for Code Exchange (PKCE)](https://auth0.com/docs/get-started/authentication-and-authorization-flow/authorization-code-flow-with-proof-key-for-code-exchange-pkce)

When a user authenticates using one of the methods above, an authorization `code` is returned from Auth0. This `code` is then exchanged using the `/oauth/token` endpoint to verify the code, and creates or refreshes Auth0 sessions + return tokens.

If Auth0 is able to exchange the `code` successfully via the `/oauth/token` endpoint, this results in a `Successful exchange of Authorization Code for Access Token` event.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 15, 2022, 3:22pm UTC](https://community.auth0.com/t/explain-successful-exchange-of-authorization-code-for-access-token/93448/3 "2022-11-15T15:22:44Z")

</div>

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