added debug info for AuthorizationToken and fixed bug in Passcode auth