Gravatar-SDK-Android
Gravatar-SDK-Android copied to clipboard
Show session expired when receiving 401 after saving the profile
Description
About editor will now show the session expired error when we receive 401 while saving the profile. This aligns Android with iOS.
Originally, I wanted to add a global session listener to automatically show OAuth flow, but I'm putting this aside for now to speed up the work.
| OAuth | Provided Token |
|---|---|
Testing Steps
- Launch the About editor with the OAuth flow
- Make sure to mock the network response to 401
- Tap save profile
- Confirm you can see the error message with
Log inbutton - Launch the QE again but now use the option to provide your own token in the demo app
- Make sure to mock the network response to 401
- Tap save profile
- Confirm you can see the error message with
Closebutton
📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
| App Name | Gravatar Demo | |
| Commit | d53489c34dd705559d951482c22d7058faf1b3a5 | |
| Direct Download | gravatar-demo-prototype-build-pr638-d53489c.apk |