Currently login_client_flutter saves Credentials object that contains tokenEndpoint that may change in time (eg. auth server url may change).
Should we assume that we want to use in order to authenticate the user when the access token expires? Currently we use tokenEndpoint that is stored within the app keychain. This means that if someone is logged in to the app, they won't be able to refresh their credentials until the application won't clear the stored Credentials.
Proposed solution:
If we were to refresh credentials we should use auth server endpoint defined in here, not the one we store in the keychain.
Currently
login_client_flutter
savesCredentials
object that contains tokenEndpoint that may change in time (eg. auth server url may change).Should we assume that we want to use in order to authenticate the user when the access token expires? Currently we use
tokenEndpoint
that is stored within the app keychain. This means that if someone is logged in to the app, they won't be able to refresh their credentials until the application won't clear the storedCredentials
.Proposed solution:
If we were to refresh credentials we should use auth server endpoint defined in here, not the one we store in the keychain.