Removing console.log because unfortunately console does not seem to be defined in iPhone Safari Web Worker and thus the whole login process simply stopped