amazon-archives / amazon-cognito-auth-js

The Amazon Cognito Auth SDK for JavaScript simplifies adding sign-up, sign-in with user profile functionality to web apps.
Apache License 2.0
424 stars 232 forks source link

Issue using this package with Angular 9 #210

Closed GenuineRex closed 4 years ago

GenuineRex commented 4 years ago

I am using amazon-cognito-auth-js with Angular 9 and running into an error with global.

"Cannot read property 'atob' of undefined"

This is from line 730 in dist/amazon-cognito-auth-js where decode calls global.atob.

I assume that I probably need to configure webpack differently but I am asking if anyone here has successfully utilized this package with Angular 9.

GenuineRex commented 4 years ago

Resolved. I was referencing the package in Angular from the "dist" folder. Once I fixed the reference all was well.