Rivet.Auth.Signin.Google.KeyManager (rivet_ident v3.5.0)
View SourceThis module runs as a separate process which keeps google's oauth public keys current, as they change weekly. This process inspects the expiration date (which google says should be correct) and updates at least by then, but does not wait longer than 1 day.
Summary
Functions
Returns a specification to start this module under a supervisor.
External interface to request a current copy of the keys for google
Callback implementation for GenServer.init/1
.
Functions
Returns a specification to start this module under a supervisor.
See Supervisor
.
External interface to request a current copy of the keys for google
iex> dict = Rivet.Auth.Signin.Google.KeyManager.get_keys() iex> is_map(dict) true
Callback implementation for GenServer.init/1
.