How do I get the current user’s info over Ajax? I created an Ajax-based login form based on this gist: https://gist.github.com/keithmancuso/29e8446ec5fa66fb2b01.

After the user has logged in, how can I get some info about them over Ajax?
For the redirect I agree, I could not get it too from ajax response, so I just saved it before the ajax call.
var returnUrl = $("input[name='redirect']").val();

Then I can make the redirection :  

.success(function(data) {
    if (data.success) {
        window.location.href = returnUrl;
    }


For the user's data could you precise what you want to do?