Maintainer | Brandon Chinn <[email protected]> |
---|---|
Stability | experimental |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
GitHub.REST.Auth
Description
Definitions for handling authentication with the GitHub REST API.
Synopsis
- data Token
- fromToken :: Token -> ByteString
- getJWTToken :: PrivateKey -> AppId -> IO Token
Documentation
The token to use to authenticate with GitHub.
fromToken :: Token -> ByteString Source #
Helpers for using JWT tokens with the GitHub API
getJWTToken :: PrivateKey -> AppId -> IO Token Source #
Create a JWT token that expires in 10 minutes.