Authentication for Single Page Applications.