Problem with Lock v11 "Last time you logged in with" user flow

@elee’s answer is the correct one. Thanks!

I’m also implementing this for a React app. I created a component that simply initializes Auth0 Lock.

The resulting code looks like this:

const lock = new Auth0Lock(AUTH0_CLIENT_ID, AUTH0_DOMAIN, options);
lock.show();
lock.on("authenticated", authResult => auth.setSession(authResult));

Obviously you need to bring auth in scope (an instance of the Auth class from the official Auth0 React samples).

If you’re using Auth0Lock to authenticate, you can scrap the authentication code from that Auth class.