ExFirebase v0.3.1 ExFirebase.Auth.PublicKeyManager View Source

GenServer process for storing Firebase public keys. The process fetches keys upon startup and reloads them when cache expires.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Retrieves a key stored in state by id

Returns all keys stored in state

Makes a request to fetch keys and store them in state

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function get_key(key_id) View Source
get_key(String.t()) :: {:ok, String.t()} | {:error, ExFirebase.Error.t()}

Retrieves a key stored in state by id

Link to this function get_keys() View Source
get_keys() :: %{required(String.t()) => String.t()} | %{}

Returns all keys stored in state

Makes a request to fetch keys and store them in state.