TheSecurityDev / simple-koa-shopify-auth

An unofficial, simplified version of the @Shopify/koa-shopify-auth middleware library.
MIT License
25 stars 6 forks source link

ReferenceError: btoa is not defined #13

Closed jamesii-four13 closed 1 year ago

jamesii-four13 commented 1 year ago

image

TheSecurityDev commented 1 year ago

I think this should be fixed in 2.1.8 now.

jamesii-four13 commented 1 year ago

I'm still having issues with btoa is not defined.

TheSecurityDev commented 1 year ago

Is this an error in the client or browser? What version are you using?

ssauli commented 1 year ago

I am having this issue as well. Everything seems to work correctly if I run my koa app locally and serve it through ngrok, but once I build and deploy the app, Koa app gives the following error when requesting the install route:

  ReferenceError: btoa is not defined
      at /var/task/node_modules/simple-koa-shopify-auth/lib/top-level-oauth-redirect.js:82:24
      at Generator.next (<anonymous>)
      at fulfilled (/var/task/node_modules/simple-koa-shopify-auth/lib/top-level-oauth-redirect.js:5:58)

I am running:

TheSecurityDev commented 1 year ago

Ok, something went wrong and the new update was never built. So 2.1.9 should fix it.