kalinjul / kotlin-multiplatform-oidc

Kotlin Multiplatform OpenIDConnect implementation for Android/iOS
https://kalinjul.github.io/kotlin-multiplatform-oidc/
Apache License 2.0
40 stars 15 forks source link

Add TokenRefreshHandler protocol #57

Open kalinjul opened 3 months ago

kalinjul commented 3 months ago

Add TokenRefreshHandler protocol and probably a default implementation that knows the oidc client so one can provide an instance via DI.

The OkHttp4 DefaultOpenIdConnectAuthenticator could than just receive the tokenStore + refreshHandler .