yongjhih/docker-parse-server

Failed to generate token

Opened this issue · 0 comments

I'm trying to generate a token using the new IOS format, at the time of execution I get the following error:

parsedashboard | The dashboard is now available at http://0.0.0.0:4040/ parseserver | parseserver | /parse/node_modules/apn/lib/credentials/token/prepare.js:45 parseserver | throw new VError(err, "Failed to generate token"); parseserver | ^

The code I am running is this:

var apnProvider = new apn.Provider({ token: { key: 'file.p8', // Path to the key p8 file keyId: 'xxxxxxxxx', // The Key ID of the p8 file (available at https://developer.apple.com/account/ios/certificate/key) teamId: 'xxxxxxxxx', // The Team ID of your Apple Developer Account (available at https://developer.apple.com/account/#/membership/) }, production: false // Set to true if sending a notification to a production iOS app });
I do not know what I'm doing wrong
Thanks for the help.