FirebaseAuthVerifier (FirebaseAuthVerifier v0.2.0) View Source
A small library for verifying FirebaseAuth ID tokens.
Link to this section Summary
Functions
Verifies a JWT token, returning either {:ok, claims}
, where claims
is the decoded
map of claims in the JWT, if it passes verification, or {:error, term()}
if it does not.
Link to this section Functions
Specs
verify(binary(), non_neg_integer(), FirebaseAuthVerifier.SignerSource.t()) :: {:ok, %{required(binary()) => term()}} | {:error, term()}
Verifies a JWT token, returning either {:ok, claims}
, where claims
is the decoded
map of claims in the JWT, if it passes verification, or {:error, term()}
if it does not.