Frontify / frontify-authenticator

Authenticate to your Frontify instance from within any secure web app
MIT License
0 stars 1 forks source link

Can’t authenticate using CDN version (Error generating session) #3

Closed getflourish closed 1 year ago

getflourish commented 1 year ago

Authenticator works fine in a React context, but in a vanilla HTML/JS, I get an error with the same config.

Bildschirm­foto 2023-04-04 um 09 50 02

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

getflourish commented 1 year ago

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 :)