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.72k stars 744 forks source link

How to create `OIDAuthState` variable without `OIDAuthState.authState` action #842

Closed 2jumper3 closed 3 months ago

2jumper3 commented 3 months ago

Hi all!

I don't understand how to reinitialise OIDAuthState variable when user terminate app?

In your examples we create var authState: OIDAuthState?
but when application will be relaunched it will be nil, so I need to recreate it, but how I can do it if I only got access token in my application?