Functions for authenticating Firebase user tokens.
Functions for authenticating Firebase user tokens.
(init-firebase! firebase-key)
Calls com.google.firebase.FirebaseApp/initializeApp
.
firebase-key
: your Firebase private key (a string)
Calls `com.google.firebase.FirebaseApp/initializeApp`. `firebase-key`: your Firebase private key (a string)
(verify-token token firebase-key)
Verifies a firebase token, returning a map of the claims.
token
: the user's auth token.firebase-key
: the contents of your *-firebase-adminsdk-*.json
file
(a string)If needed, calls init-firebase!
. Returns nil
if token
is invalid.
Verifies a firebase token, returning a map of the claims. - `token`: the user's auth token. - `firebase-key`: the contents of your `*-firebase-adminsdk-*.json` file (a string) If needed, calls [[init-firebase!]]. Returns `nil` if `token` is invalid.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close