Move OAuth initialization into an Angular context