openid / AppAuth-iOS

iOS and macOS SDK for communicating with OAuth 2.0 and OpenID Connect providers.
https://openid.github.io/AppAuth-iOS
Apache License 2.0
1.75k stars 766 forks source link

Get the current live session after an app restart #838

Closed oliverfoggin closed 6 months ago

oliverfoggin commented 6 months ago

A lot of the docs show how to present the login and store the AuthState from there but I'm struggling to work out how to get the AuthState after an app restart.

In the docs the AuthState is nil after a restart. And the only way I've found to get it again is to show the login screen which immediately gets dismissed again.

Is there a way to get the current AuthState without presenting the login screen?

Thanks