# Validate Access and refresh token in Nativescript

**URL:** <https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719>\
**Category:** OAuth/OIDC\
**Created:** [April 13, 2024, 1:25am UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719 "2024-04-13T01:25:51Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahulbharti3333](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rahulbharti3333](https://devforum.okta.com/u/rahulbharti3333)\
**Post date:** [April 13, 2024, 1:25am UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719/1 "2024-04-13T01:25:51Z")

</div>

Hi Team, please help

Is there any Nativescript library which can help me validate Access and refresh token locally using clientId or issuer?

I am using TnsOAuthClient but it doesn’t has any method which could validate the token locally in my app.

Please help!!!

---

<div class="post-metadata">

**Author:** ![nikitag](https://avatars.discourse-cdn.com/v4/letter/n/ce7236/32.png) [@nikitag](https://devforum.okta.com/u/nikitag)\
**Post date:** [April 16, 2024, 4:09pm UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719/2 "2024-04-16T16:09:13Z")

</div>

Hi @rahulbharti3333  
Okta does not have a Nativescript SDK available currently.  
You can submit a feature request to Okta Ideas, more information about how to use Okta Ideas found here: [Okta Help Center (Lightning)](https://support.okta.com/help/s/article/Okta-Ideas-Overview-FAQ?language=en_US).

Once ideas are submitted, other Okta admins will have the ability to vote on them to help our Product team prioritize requests. Additionally, you will be able to monitor the potential for future enhancements there.

Thanks!

---

<div class="post-metadata">

**Author:** ![rahulbharti3333](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rahulbharti3333](https://devforum.okta.com/u/rahulbharti3333)\
**Post date:** [April 17, 2024, 2:10pm UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719/5 "2024-04-17T14:10:41Z")

</div>

Does Okta provide the accurate expiration time of the refresh token to frontend clients? It seems that Okta consistently sends the expiration time of the refresh token as the same as the access token, regardless of the library used

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [April 17, 2024, 3:15pm UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719/6 "2024-04-17T15:15:29Z")

</div>

No, the refresh token expiration time will not be returned in the /token response from Okta. The only expires\_at value that will be returned is for the Access Token, as noted in our documentation [here](https://developer.okta.com/docs/reference/api/oidc/#response-properties-5).

The only way to validate a Refresh Token would be to send it to the [Introspection endpoint](https://developer.okta.com/docs/reference/api/oidc/#introspect) or to send it to the Token endpoint to request new tokens when the original set of ID/Access tokens has expired.

---

<div class="post-metadata">

**Author:** ![rahulbharti3333](https://avatars.discourse-cdn.com/v4/letter/r/ebca7d/32.png) [@rahulbharti3333](https://devforum.okta.com/u/rahulbharti3333)\
**Post date:** [April 29, 2024, 7:05am UTC](https://devforum.okta.com/t/validate-access-and-refresh-token-in-nativescript/27719/7 "2024-04-29T07:05:13Z")

</div>

Hi @andrea do we have any library using which I can validate the access token locally in Nativescript?
