Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TokenGenerator ¶
type TokenGenerator struct { // KeyID is the Key identifier from your developer accoung. KeyID string // TeamID is the Team ID from your developer accoung. TeamID string // ServiceID is the Service ID from your developer accoung. ServiceID string // Duration is how long the token will be valid for. Duration time.Duration }
TokenGenerator generates authentication tokens for apple REST APIs.
func (*TokenGenerator) GenerateSignedJWT ¶
func (g *TokenGenerator) GenerateSignedJWT(pemBytes []byte) (string, error)
GenerateSignedJWT generates a valid JWT signed with your PEM private key.
Click to show internal directories.
Click to hide internal directories.