Gravatar-SDK-Android icon indicating copy to clipboard operation
Gravatar-SDK-Android copied to clipboard

Show session expired when receiving 401 after saving the profile

Open AdamGrzybkowski opened this issue 6 months ago • 1 comments

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
Screenshot 2025-05-26 at 14 35 56 Screenshot 2025-05-26 at 14 35 37

Testing Steps

  1. Launch the About editor with the OAuth flow
  2. Make sure to mock the network response to 401
  3. Tap save profile
  4. Confirm you can see the error message with Log in button
  5. Launch the QE again but now use the option to provide your own token in the demo app
  6. Make sure to mock the network response to 401
  7. Tap save profile
  8. Confirm you can see the error message with Close button

AdamGrzybkowski avatar May 26 '25 12:05 AdamGrzybkowski

📲 You can test the changes from this Pull Request in Gravatar Demo by scanning the QR code below to install the corresponding build.
App NameGravatar Demo
Commitd53489c34dd705559d951482c22d7058faf1b3a5
Direct Downloadgravatar-demo-prototype-build-pr638-d53489c.apk

wpmobilebot avatar May 26 '25 12:05 wpmobilebot