pusher / push-notifications-node

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

Pusher beams returns 401 when you call delete user from from the sdk though token generation works without any issue #70

Closed anyatibrian closed 1 year ago

benw-pusher commented 1 year ago

I've not been able to replicate this - the user is deleted as expected. A 401 indicates and incorrect API Key, have you verified this is set correctly?.

anyatibrian commented 1 year ago

@benw-pusher what I don't get is I was able to use the same key to generate pusher users token

anyatibrian commented 1 year ago

@benw-pusher has tested it with post man it only returns 200 status code even when the userID is a fake one and though with wrong secret key it throws the expected error i.e 401 { "error": "Unauthorized", "description": "Incorrect Secret Key" }

anyatibrian commented 1 year ago

@benw-pusher I think its fine, the issue I had AWS parameter store was returning an older version of the parameter, so I had to delete it and recreate a new one so that the version is consistent through out.