Documentation
¶
Index ¶
- type Generator
- func (g *Generator) GenerateToken(appID int64, privateKeyPath string) (string, error)
- func (g *Generator) GenerateTokenFromKey(appID int64, privateKeyContent string) (string, error)
- func (g *Generator) GetTokenClaims(token string) (map[string]interface{}, error)
- func (g *Generator) ValidateToken(token string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Generator ¶
type Generator struct {
// contains filtered or unexported fields
}
func (*Generator) GenerateToken ¶
GenerateToken generates a GitHub App JWT token from a private key file path
func (*Generator) GenerateTokenFromKey ¶
GenerateTokenFromKey generates a GitHub App JWT token from private key content
func (*Generator) GetTokenClaims ¶
GetTokenClaims extracts claims from a JWT token (for testing/debugging)
func (*Generator) ValidateToken ¶
ValidateToken validates a JWT token structure (for testing)
Click to show internal directories.
Click to hide internal directories.