Making the Auth0 SPA SDK unit testable with Angular
Auth0, the authentication service and identity provider has a new SDK for Single Page Applications (SPAs) that works well with Angular. Their dashboard has an Angular Quick Start, and in it they provide a tailored wrapper class for Angular to work with their SDK. When you extend this class you may run into the issue that you can't easily mock the Auth0Client dependency. Read on to find out how to do this.