Fix identity test page not working on desktop due to nativeAuth parameter in details object.

Also log errors when they occur in getToken();