pusher / push-notifications-node

Pusher Beams Node.js Server SDK
https://pusher.com/beams
MIT License
20 stars 23 forks source link

type issue #58

Closed imohitagrwal closed 2 years ago

imohitagrwal commented 2 years ago

generateToken return type is not correct, the type in code is string but it is returning { token: string }

please resolve this asap, need to integrate it in our application.

benjamin-tang-pusher commented 2 years ago

Hi, returning a dictionary key:value pair for this function is intentional, and I can't see where it would return string. Could you describe in more detail where you're seeing the string return?

I also gave this a go in my typescript app and the function worked fine.

benjamin-tang-pusher commented 2 years ago

I will close this issue, but if you have further details let us know by reopening this.