Get a refresh token endpoint not working

I was trying to fetch the details about a specific refresh token with its Id using the Get a refresh token endpoint( api/v2/refresh-tokens/:id). I tried both normal refresh tokens and rotating refresh tokens. I couldn’t fetch details for either. It says “The refresh token does not exist” for each response.

Hello @thushalya ,

Thank you for reaching out to us!

Looking into this, it seems like the “ refresh token does not exist” error is happening because you might be passing in the refresh token itself and not the refresh token ID. This is reproducible by passing a non-refresh token ID. In order to get a refresh token, you must pass in the offline_acces scope in the authentication request through the (/authorize) endpoint. You can find more information on this via our Get Refresh Tokens documentation.

Digging a little more into it, the refresh token ID is only for Enterprise customers who also request it through their technical account manager. It looks like you are currently on a trial subscription plan, which disallows the use of this feature unless requested. We have helped extend your trial period until 12/31/24. Would you like us to see if we can request to enable this feature from our side by opening a Support case?

Thank you,
Gerald

1 Like

Hello Gerald,

Thank you very much addressing my problem. Yes it would be better if you can enable it. Yes I eventually understood that I had to use id attribute of refresh token and not refresh token itself. However is there any way to take the refresh token id from refresh token itself (I think its an opaque token)?

My use case is to verify whether there is a valid refresh token available for a specific request cause I delete every refreshToken for each login (need to have only one session per user each time) . How can I retrieve the id of a refresh token using the refresh token itself? or is there any other way to achieve my usecase?

Hello Gerald, @gerald.czifra
waiting for your reply

Hello @thushalya,

Pardon my absence, it looks like this is currently in Private Early Access and only available to Enterprise customers. I have confirmation that Trial customers cannot have this enabled for their tenants unfortunately.

More information will be released in the future in regards to this feature, for the moment it is restricted to Enterprise customers. We do not yet have an ETA for the full release or any additional details

Thank you!
Gerald

1 Like