FirebaseAuthVerifier.SignerSource behaviour (FirebaseAuthVerifier v0.2.1) View Source
The behaviour of a SignerSource.
Link to this section Summary
Types
Any type that adopts this behaviour, such as FirebaseAuthVerifier.CertificateManager.
Callbacks
Expects to return a map with the Joken.Signer's ID as a key.
Link to this section Types
Specs
t() :: FirebaseAuthVerifier.SignerSource
Any type that adopts this behaviour, such as FirebaseAuthVerifier.CertificateManager.
Link to this section Callbacks
Specs
get_signers() :: %{required(binary()) => Joken.Signer.t()} | {:error, term()}
Expects to return a map with the Joken.Signer's ID as a key.
NOTE: This is what is returned by Google and for now I do not know if it's necessary to do it this way, so it might change in the future.