Auth0.Android icon indicating copy to clipboard operation
Auth0.Android copied to clipboard

onResume is called after login from ULP before token is returned

Open cooperkong opened this issue 1 year ago • 0 comments

Checklist

  • [X] The issue can be reproduced in the Auth0.Android sample app (or N/A).
  • [X] I have looked into the Readme, Examples, and FAQ and have not found a suitable solution or answer.
  • [X] I have looked into the API documentation and have not found a suitable solution or answer.
  • [X] I have searched the issues and have not found a suitable solution or answer.
  • [X] I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • [X] I agree to the terms within the Auth0 Code of Conduct.

Description

onResume will be called in the Activity that launches ULP once the login is finished and before token is returned. This creates a gap in the code where Auth0 credentials could be used in onResume, which will cause Auth0 to return error before the actual token is returned.

Reproduction

  1. launch ULP
  2. observer that onResume is called before token is returned.

Additional context

No response

Auth0.Android version

2.10.2

Android version(s)

12

cooperkong avatar May 01 '24 03:05 cooperkong