What is the best way to re-authenticate a user from a username / email saved in IOS’s core data?
The idea is to save the username after the user has logged in, and then keep using that username until they logout. The difficulty we are facing is twofold:
The credentials returned from Lock.onAuth() don’t include user info so we immediately call Auth.authentication().tokenInfo(token: credentials.idToken!) to get user information. This seems inefficient.
Should we just parse the JWT in idToken?
On the IOS application startup , if we find a saved username in Core Data, how do we authenticate and get an idToken with just the username?
And a related question: Why is the option to “Remember Me” not available in IOS?