Implement token authentication