We have upgraded to Lock11 per the migration documentation and now the “Last time you logged in” functionality no longer works. The document states:
"Lock 11 will never show the Last time you logged in with window when using the Authorization Code Flow (that is, when specifying response_type=‘code’). It will always prompt for credentials.
The Last time you logged in with window will also never do a redirect, even when the redirect option is set to true. Lock11 still emits the authenticated event and you should subscribe to that event to get the authentication result.
If you want to avoid showing the Lock dialog when there’s an existing session in the server, you can use Auth0.js’s checkSession() function."
We are not using Auth0.js. Can you give an example of how to use the authenticated event that is referenced above to achieve this same functionality?