# Is it possible to specify timeout for SilentAuthenticationHandler in renewAuth method?

**URL:** <https://community.auth0.com/t/is-it-possible-to-specify-timeout-for-silentauthenticationhandler-in-renewauth-method/7133>\
**Category:** Get Help\
**Tags:** renewauth, timeout-error, timeout\
**Created:** [June 19, 2017, 2:48pm UTC](https://community.auth0.com/t/is-it-possible-to-specify-timeout-for-silentauthenticationhandler-in-renewauth-method/7133 "2017-06-19T14:48:19Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreihramtsov](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@andreihramtsov](https://community.auth0.com/u/andreihramtsov)\
**Post date:** [June 19, 2017, 2:48pm UTC](https://community.auth0.com/t/is-it-possible-to-specify-timeout-for-silentauthenticationhandler-in-renewauth-method/7133/1 "2017-06-19T14:48:19Z")

</div>

It looks like SilentAuthenticationHandler accepts timeout option

```
function SilentAuthenticationHandler(options) {
  this.authenticationUrl = options.authenticationUrl;
  this.timeout = options.timeout || 60 * 1000;
  this.handler = null;
  this.postMessageDataType = options.postMessageDataType || false;
}

```

But how can I pass this option when I call renewAuth method?  
So it looks like a user was stuck when timeout lasts 60 seconds.

---

<div class="post-metadata">

**Author:** ![jmangelo](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jmangelo/32/7923_2.png) [@jmangelo](https://community.auth0.com/u/jmangelo)\
**Post date:** [June 19, 2017, 6:01pm UTC](https://community.auth0.com/t/is-it-possible-to-specify-timeout-for-silentauthenticationhandler-in-renewauth-method/7133/2 "2017-06-19T18:01:19Z")

</div>

At this time it’s not possible to override the default timeout value used by the handler created as a result of a `renewAuth` call. As you mentioned the handler itself already supports the notion of a configurable timeout, but the [code that creates the handler](https://github.com/auth0/auth0.js/blob/bdce0d5927dcf652b9ddbd3e9a1141c56002d774/src/web-auth/index.js#L284) as part of the renew authentication flow does not allow user code to choose a non-default timeout.

You may consider opening an issue and/or pull request in the library repository, however, have in mind that doing so does not imply that the issue would be addressed and pull requests are reviewed as time permits it and according to other priorities.

---

<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:** [March 2, 2018, 5:54am UTC](https://community.auth0.com/t/is-it-possible-to-specify-timeout-for-silentauthenticationhandler-in-renewauth-method/7133/3 "2018-03-02T05:54:45Z")

</div>


