Firefox extension using auth0-spa-js SDK

Hi how did you implement the auth0-spa-js SDK for chrome extension? Been having problems trying to implement it.I use the loginWithPopup() but it instantly closes my popup after I login.