Updated auth code to lookup tokens and create an identity from it.