Module rebar_hex_auth

Authentication wrapper for Hex package manager.

Description

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.

Function Index

client_id/0Returns the OAuth client ID for Hex.
global_oauth_key/0Returns the key used for global OAuth storage in hex.config.
persist_tokens/4Persist the global OAuth tokens to hex.config.

Function Details

client_id/0

client_id() -> binary()

Returns the OAuth client ID for Hex.

global_oauth_key/0

global_oauth_key() -> binary()

Returns the key used for global OAuth storage in hex.config.

persist_tokens/4

persist_tokens(AccessToken, RefreshToken, ExpiresAt, State) -> ok

Persist the global OAuth tokens to hex.config.


Generated by EDoc