Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Failed to generate token #95

Open
solucionti opened this issue Oct 23, 2017 · 0 comments
Open

Failed to generate token #95

solucionti opened this issue Oct 23, 2017 · 0 comments

Comments

@solucionti
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants