Skip to main content

Module token

Module token 

Source
Expand description

Token verification and stdin reading utilities.

Provides functions to verify that an OAuth token is valid by calling GET /user, and to read tokens from stdin (for piping).

Structs§

UserResponse
Minimal user response from GET /user for token verification.

Functions§

read_token_from_stdin
Read a token from stdin, trimming whitespace.
verify_token
Verify that an OAuth token is valid by calling GET /user.