Refine the auth provider