# Discourse iOS app doesn’t share login with web

**URL:** https://meta.discourse.org/t/discourse-ios-app-doesn-t-share-login-with-web/71040
**Category:** Bug
**Created:** [September 29, 2017, 2:48pm UTC](https://meta.discourse.org/t/discourse-ios-app-doesn-t-share-login-with-web/71040 "2017-09-29T14:48:56Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![dfabulich](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dfabulich/32/108716_2.png) [@dfabulich](https://meta.discourse.org/u/dfabulich)
#### Post date: [September 29, 2017, 2:48pm UTC](https://meta.discourse.org/t/discourse-ios-app-doesn-t-share-login-with-web/71040/1 "2017-09-29T14:48:56Z")

</div>

As a new “feature” of iOS 11, Safari web views no longer share cookies with the main Safari app.

As a result, when you upgrade to iOS 11, you’re logged out of all of your associated forums in the Discourse iOS app. When you attempt to login with Google or Facebook, your authentication credentials aren’t there; you have to sign in to Facebook with a password, re-enter your second factor code, and “remember this browser” in the future.

The intended workaround for this is for iOS apps to use [SFAuthenticationSession](https://developer.apple.com/documentation/safariservices/sfauthenticationsession) for logging in to third party services.

The Discourse iOS app should use SFAuthenticationSession to sign in to Discourse forums.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 29, 2017, 2:56pm UTC](https://meta.discourse.org/t/discourse-ios-app-doesn-t-share-login-with-web/71040/2 "2017-09-29T14:56:48Z")

</div>

See here:

> [@iOS 11 embedded Safari changes](https://meta.discourse.org/t/ios-11-embedded-safari-changes/69172):
>
> I recently updated my iPhone to the public beta of iOS 11, and noticed an annoying change which impacts the Discourse app. I’m not sure there’s actually much we can do about it, so this is more of a heads-up. This is not a bug in the beta, it is an intended change from Apple. A “Safari View Controller” instance no longer shares cookies with Safari. This means if you’re logged into discourse in safari, you will not be automatically logged in when you use the app. Once you log in within the app,…

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [September 29, 2017, 3:07pm UTC](https://meta.discourse.org/t/discourse-ios-app-doesn-t-share-login-with-web/71040/3 "2017-09-29T15:07:40Z")

</div>


