yongjhih/docker-parse-server

Failed to generate token

Open

#95 opened on Oct 23, 2017

View on GitHub
 (0 comments) (0 reactions) (0 assignees)JavaScript (161 forks)github user discovery
help wanted

Repository metrics

Stars
 (474 stars)
PR merge metrics
 (PR metrics pending)

Description

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.

Contributor guide