# Make refresh\_token.id available during \`oidc-basic-profile\` of post-login action

**URL:** <https://community.auth0.com/t/make-refresh-token-id-available-during-oidc-basic-profile-of-post-login-action/185364>\
**Category:** Product Feedback\
**Created:** [April 11, 2025, 9:19am UTC](https://community.auth0.com/t/make-refresh-token-id-available-during-oidc-basic-profile-of-post-login-action/185364 "2025-04-11T09:19:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![massimoalbarello](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/massimoalbarello/32/71118_2.png) [@massimoalbarello](https://community.auth0.com/u/massimoalbarello)\
**Post date:** [April 11, 2025, 9:19am UTC](https://community.auth0.com/t/make-refresh-token-id-available-during-oidc-basic-profile-of-post-login-action/185364/1 "2025-04-11T09:19:37Z")

</div>

**Feature:** Make `event.refresh_token.id` available every time an access token is generated.

**Description:** During `oauth2-refresh-token`, `event.refresh_token.id` is always available. However, during `oidc-basic-profile` it isn’t (as the refresh token hasn’t been generated yet). Would be great to be able to get the id of the refresh token that is going to be generated already during `oidc-basic-profile`. Alternatively, have the post-login action be triggered also after an authorization code is converted into access and refresh tokens so that we can capture the refresh token id.

**Use-case:** I want the API that receives and validates the requests with the access tokens to be able to distinguish among requests coming from different authorizations of the same user. This is currently possible in most cases by adding a custom claim on each access token and use the refresh token id to identify the authorization they are from. However, because the refresh token id is not currently available during `oidc-basic-profile` it is not currently possible to add it as a custom claim on the very first access token. Thus, there is no way to identify which authorization it is from (in case there are multiple from the same user).  
More info of the use case can be found [here](https://community.auth0.com/t/how-to-identify-access-tokens-generated-by-the-same-refresh-token/184976).

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [April 30, 2025, 4:20pm UTC](https://community.auth0.com/t/make-refresh-token-id-available-during-oidc-basic-profile-of-post-login-action/185364/2 "2025-04-30T16:20:17Z")

</div>

Hi there!

Welcome to the Auth0 Community!

Thank you for creating this feedback card. Please make sure to upvote it so that it gets as many votes as possible and attracts as many community members as possible.

Thanks  
Dawid
