Liking cljdoc? Tell your friends :D

fire.oauth2


credentialsclj

(credentials env-var)

Decode the service account credentials held in the named environment variable. fire.admin needs the private key and client email out of these to mint custom tokens, which is signing rather than an api call.

Decode the service account credentials held in the named environment
variable. fire.admin needs the private key and client email out of these
to mint custom tokens, which is signing rather than an api call.
sourceraw docstring

get-tokenclj

(get-token env-var)
source

signclj

(sign claims' priv-key)
(sign claims' priv-key header')

Sign claims into an RS256 JWT. The header defaults to the bare {:alg "RS256"} this has always emitted; firebase custom tokens want :typ in there too, so it can be passed in.

Sign claims into an RS256 JWT. The header defaults to the bare {:alg "RS256"}
this has always emitted; firebase custom tokens want :typ in there too, so it
can be passed in.
sourceraw docstring

str->private-keyclj

(str->private-key keystr')
source

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close