knocklabs / knock-node

Official Node SDK for interacting with the Knock API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Bug]: Buffer is not defined on cloudflare worker env

dinwwwh opened this issue · comments

image

  const token = await Knock.signUserToken(ctx.auth.userId, {
    signingKey: ctx.env.KNOCK_SIGNING_KEY,
  })

Please use something else or import Buffer from node:buffer, but nodejs_compat flag is required on worker.