Switch to token based authentication