Closed getflourish closed 1 year ago
Authenticator works fine in a React context, but in a vanilla HTML/JS, I get an error with the same config.
FYI: In the repo, I excluded the domain from the config, otherwise the popup stays empty.
Reproduction:
Domain: demo.frontify.com
https://codesandbox.io/s/flamboyant-dewdney-bwfn9h?file=/index.html
Nevermind. The actual issue was that I passed the "scopes" as a string, not an array. The error message was a bit misleading. I noticed the mistake after using the TS version :)
Authenticator works fine in a React context, but in a vanilla HTML/JS, I get an error with the same config.
FYI: In the repo, I excluded the domain from the config, otherwise the popup stays empty.
Reproduction:
Domain: demo.frontify.com
https://codesandbox.io/s/flamboyant-dewdney-bwfn9h?file=/index.html