userback / widget-js

MIT License
4 stars 3 forks source link

Unable to identify user / Using widget-js into Angular #31

Closed KevinOustry closed 2 years ago

KevinOustry commented 2 years ago

Hi there 👋,

I can't figure out the widget-js that I'm using in an Angular app.

I'm trying to set the user email at login/logout after UserbackWidget is created / instanciated.

How can I access to UserbackWidget as the getUserback() method always returns undefined ?

Furthermore, the promise is never resolved in my case :

import Userback from '@userback/widget'
await Userback('**USERBACK_TOKEN**')

Thanks a lot 🙏