GuardianFirebase v0.1.0 GuardianFirebase.Token View Source
Implements Guardian’s Token behavior for Firebase tokens
Link to this section Summary
Functions
Builds the default claims for all new Firebase tokens
Create a token. Uses the claims, encodes and signs the token. The signing secret will be found first from the options. If not specified the secret key from the configuration will be used. Configuration:
secret_key
The secret key to use for signing Options:secret
The secret key to use for signingheaders
The Jose headers that should be used The secret may be in the form of any resolved value fromGuardian.Config
Decodes the token and validates the signature
Exchanging a Firebase token is not implemented
Inspect the JWT without any validation or signature checking.
Return an map with keys: headers
and claims
Refreshing a Firebase token is not implemented
Revoking a Firebase token does not do anything
Generate unique token id
Verifies the claims
Link to this section Functions
Builds the default claims for all new Firebase tokens.
Create a token. Uses the claims, encodes and signs the token. The signing secret will be found first from the options. If not specified the secret key from the configuration will be used. Configuration:
secret_key
The secret key to use for signing Options:secret
The secret key to use for signingheaders
The Jose headers that should be used The secret may be in the form of any resolved value fromGuardian.Config
Decodes the token and validates the signature.
Exchanging a Firebase token is not implemented.
Inspect the JWT without any validation or signature checking.
Return an map with keys: headers
and claims
Refreshing a Firebase token is not implemented.
Revoking a Firebase token does not do anything.
Generate unique token id
Verifies the claims.