This PR adds state parameter to AuthorizationCodeFlow.start as requested by #276.
This PR also fixes some issues related to DeviceTokenCookie initialization with the following:
Lazily loading DT cookie in DeviceTokenCookieJar to avoid crashes when users create OidcConfiguration in a Jetpack startup initializer.
Attempting to reinitialize DeviceTokenProvider's storage by deleting the storage during Exception, and then recreating the storage.
These should fix most of the issues reported by users. The only exception being if the encryption key is itself corrupted, which can happen and has been reported as an issue for EncryptedSharedPreferences. But, that case should be much rarer than the issues addressed by the above two fixes.
This PR adds state parameter to AuthorizationCodeFlow.start as requested by #276.
This PR also fixes some issues related to DeviceTokenCookie initialization with the following:
These should fix most of the issues reported by users. The only exception being if the encryption key is itself corrupted, which can happen and has been reported as an issue for EncryptedSharedPreferences. But, that case should be much rarer than the issues addressed by the above two fixes.