You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
*Version 2.18.0 introduces breaking changes against 2.17.1.*
6
+
7
+
### Breaking Updates
8
+
- aws-android-sdk-mobile-client:
9
+
- No breaking changes code-wise but if you already setup HostedUI for an older version of the SDK,
10
+
you'll need to follow the steps in the [updated documentation](https://docs.amplify.aws/sdk/auth/hosted-ui/q/platform/android#setup-amazon-cognito-hosted-ui-in-android-app)
11
+
to properly handle the response going forward.
12
+
- aws-android-sdk-cognitoauth:
13
+
-`getSession()` method has been refactored to `getSession(Activity activity)`, where `activity` is an instance of
14
+
the activity the user is calling this method from. It uses this to launch HostedUI if it needs to sign in again.
15
+
-`getSession(boolean launchWebUIIfExpired)` has been refactored to `getSessionWithoutWebUI()`. It will get session
16
+
information if the refresh token is still valid, otherwise will throw an exception indicating the user must sign in
17
+
again.
18
+
19
+
### Bug Fixes
20
+
- aws-android-sdk-mobile-client:
21
+
-`getTokens()` was making a network call every time it was used, negating any benefit of cached tokens. Removed
22
+
the unnecessary network call so it now correctly returns cached tokens when available with no network call (Issue #1722)
0 commit comments