# Prompt 'select\_account' returns 'expires\_in' instead of 'expires\_at'

**URL:** <https://community.auth0.com/t/prompt-select-account-returns-expires-in-instead-of-expires-at/12791>\
**Category:** Get Help\
**Tags:** prompt, social-connections\
**Created:** [July 4, 2018, 7:21am UTC](https://community.auth0.com/t/prompt-select-account-returns-expires-in-instead-of-expires-at/12791 "2018-07-04T07:21:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zatziky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zatziky/32/10325_2.png) [@zatziky](https://community.auth0.com/u/zatziky)\
**Post date:** [July 4, 2018, 7:21am UTC](https://community.auth0.com/t/prompt-select-account-returns-expires-in-instead-of-expires-at/12791/1 "2018-07-04T07:21:01Z")

</div>

**Background**  
Every time a user tries to authorize using **Google social connection** , we want to allow the user to pick from all Google accounts he has.

**Problem**  
This [answer](https://stackoverflow.com/a/40082382/1075289) explains that if we use `auth.params: { prompt: 'select_account'}` the user can always pick his desired Google account. However, a subsequent call to a callback URL replaces `expires_at` with `expires_in` for all connections (database and social ones too). This an example of a callback: _ **/callback#access\_token=…&expires\_in=7200** _

I know we can calculate expires\_at from expires\_in according to this [doc](https://stackoverflow.com/questions/40052501/how-to-force-account-selection-when-using-social-provider-login-in-lock).

**Question**  
How can we forse `expires_at` with `auth.params: { prompt: 'select_account'}`?

---

<div class="post-metadata">

**Author:** ![zatziky](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/zatziky/32/10325_2.png) [@zatziky](https://community.auth0.com/u/zatziky)\
**Post date:** [July 26, 2018, 12:10pm UTC](https://community.auth0.com/t/prompt-select-account-returns-expires-in-instead-of-expires-at/12791/2 "2018-07-26T12:10:27Z")

</div>

It was my fault. Auth0 is returning always `expires_in`. We just internally stored `expires_at`.

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [December 17, 2018, 11:00am UTC](https://community.auth0.com/t/prompt-select-account-returns-expires-in-instead-of-expires-at/12791/3 "2018-12-17T11:00:06Z")

</div>


