# Account login timed out when using SSO if auth\_immediately = false

**URL:** https://meta.discourse.org/t/account-login-timed-out-when-using-sso-if-auth-immediately-false/215312
**Category:** SSO
**Created:** [January 19, 2022, 10:09am UTC](https://meta.discourse.org/t/account-login-timed-out-when-using-sso-if-auth-immediately-false/215312 "2022-01-19T10:09:25Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![priyambodo.w](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/priyambodo.w/32/244149_2.png) [@priyambodo.w](https://meta.discourse.org/u/priyambodo.w)
#### Post date: [January 19, 2022, 10:09am UTC](https://meta.discourse.org/t/account-login-timed-out-when-using-sso-if-auth-immediately-false/215312/1 "2022-01-19T10:09:26Z")

</div>

Hi, I got this error when implementing [DiscourseConnect](https://meta.discourse.org/t/13045?silent=true)

`Account login timed out, please try logging in again`

whenever I switch auth\_immediately to `false`. Setting it to `true` make it works again somehow. Any clue on this? I check in log file but there’s no error in there.

Full setting (login/sso related):

```plaintext
SiteSetting.enable_discourse_connect = true
SiteSetting.login_required = true
SiteSetting.auth_immediately = false
SiteSetting.must_approve_users = false
SiteSetting.invite_only = false

```

Edit: Removing `destination_url` cookie before do login is working even with `auth_immediately = false`. But I lose the redirect. Is this a bug?
