README
apple_secret_generator
Simple Apple client secret key generator for javascript
Getting Started
Installing
npm install apple_secret_generator
Usage
const aps = require("apple_secret_generator");
const token = aps.generate({
keyFileLocation: "./AppleLoginAuthKey.p8", // put generated p8 file directory
expires: 180, // default is 180 days, apple allows expire date until 180 days
team_id: process.env.TEAM_ID, // App ID Prefix's TEAM ID
identifier: process.env.IDENTIFIER, // Services IDs IDNETIFIER
key_id: process.env.KEY_ID, // Key ID
});
console.log(token);
Built With
- node-jsonwebtoken - jwt generator
Authors
License
This project is licensed under the MIT License - see the LICENSE.md file for details