That may do it, haven’t tried it though
Or you can try to hook passport.js somewhere, but it seems easier said than done…