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 get-key)Verifies a firebase token, returning a map of the claims.
get-key: a zero-argument function which returns your Firebase private key
(a string).
If needed, calls init-firebase!. Returns nil if token is invalid.
Verifies a firebase token, returning a map of the claims. `get-key`: a zero-argument function which returns your Firebase private key (a string). If needed, calls [[init-firebase!]]. Returns `nil` if `token` is invalid.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |