Authentication wrapper for Hex package manager.
This module provides rebar3-specific callbacks for r3_hex_cli_auth. See r3_hex_cli_auth for auth resolution order and details.| client_id/0 | Returns the OAuth client ID for Hex. |
| global_oauth_key/0 | Returns the key used for global OAuth storage in hex.config. |
| persist_tokens/4 | Persist the global OAuth tokens to hex.config. |
client_id() -> binary()
Returns the OAuth client ID for Hex.
global_oauth_key() -> binary()
Returns the key used for global OAuth storage in hex.config.
persist_tokens(AccessToken, RefreshToken, ExpiresAt, State) -> ok
AccessToken = binary()RefreshToken = binary() | undefinedExpiresAt = integer()State = rebar_state:t()
Persist the global OAuth tokens to hex.config.
Generated by EDoc