Generates a new XOAuth2 token with the credentials provided at initialization
Returns or generates (if previous has expired) a XOAuth2 token
Creates a JSON Web Token signed with RS256 (SHA256 + RSA)
Custom POST request handler. This is only needed to keep paths short in Windows – usually this module is a dependency of a dependency and if it tries to require something like the request module the paths get way too long to handle for Windows. As we do only a simple POST request we do not actually require complicated logic support (no redirects, no nothing) anyway.
Encodes a buffer or a string into Base64url format
Generated using TypeDoc
Converts an access_token and user id into a base64 encoded XOAuth2 token