Some magic for auth.