# How to configure expiration for access token obtained with SDK for Okta Service Application

**URL:** <https://devforum.okta.com/t/how-to-configure-expiration-for-access-token-obtained-with-sdk-for-okta-service-application/14375>\
**Category:** Questions\
**Tags:** dotnet\
**Created:** [May 24, 2021, 7:58pm UTC](https://devforum.okta.com/t/how-to-configure-expiration-for-access-token-obtained-with-sdk-for-okta-service-application/14375 "2021-05-24T19:58:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigopat](https://avatars.discourse-cdn.com/v4/letter/r/e495f1/32.png) [@rodrigopat](https://devforum.okta.com/u/rodrigopat)\
**Post date:** [May 24, 2021, 7:58pm UTC](https://devforum.okta.com/t/how-to-configure-expiration-for-access-token-obtained-with-sdk-for-okta-service-application/14375/1 "2021-05-24T19:58:55Z")

</div>

Hi, is it possible to configure the expiration time for token generated by SDK? I’m using dotnet, and currently getting “client\_assertion token has an expiration too far into the future”, current workaround is to turn back the clock 1 minute, inspired by

[The client\_assertion token has an expiration too far into the future - Questions - Okta Developer Forums](https://devforum.okta.com/t/the-client-assertion-token-has-an-expiration-too-far-into-the-future/12267)

OktaClientConfiguration config = new OktaClientConfiguration { … }  
new OktaClient(config);

---

<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:** [February 8, 2024, 6:15pm UTC](https://devforum.okta.com/t/how-to-configure-expiration-for-access-token-obtained-with-sdk-for-okta-service-application/14375/2 "2024-02-08T18:15:56Z")

</div>

Closed on February 8, 2024, 6:15pm UTC


