1.0.3 • Published 8 months ago

@jasonpraful/apple-secret-generator v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

Secret Generator for Sign-In with Apple

Quickstart

As an executable:

npx @jasonpraful/apple-secret-generator --help

As a library:

import { generateSecret } from '@jasonpraful/apple-secret-generator'

const secret = generateAppleSecret(key, days, kid, team, client)

console.log(secret) // JWT Token

Usage

OptionDescriptionRequiredDefaultExample
-i, --key-idThe identifier of the key to use - derived from hereYesN/AFTXXXXX
-k, --keyThe path to the key file - downloaded from hereYeskey.p8./key.p8
-c, --clientThe client ID of the service - derived by creating a service ID here. Important: This is not the same as the bundle ID.YesN/Acom.example.service
-t, --teamThe identifier of the team to use - derived from hereYesN/AXXXXXXXX
-d, --daysThe number of days the secret should be valid for. Please note: The maximum value allowed by apple is 180days.No18090

License

MIT

1.0.3

8 months ago

1.0.2

8 months ago

1.0.1

8 months ago

1.0.0

8 months ago