stleamist / BetterSafariView

A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.
MIT License
581 stars 57 forks source link

Auto-signs in with some websites #40

Closed trevordevs closed 1 year ago

trevordevs commented 1 year ago

I am using a webauthsession to authenticate my users Spotify accounts. However, once they sign in, the webauthsession auto-signs them in whenever I re-present it. This is annoying because my users may want to sign into a different account, which they can't do if they are auto-signed in. Is there anyway for me to get around this? Seems like a bug with how it is cached even when the app is deleted.

trevordevs commented 1 year ago

Fixed by adding .prefersEphemeralWebBrowserSession(true) to my WebAuthenticationSession.