Implement token based auth.