Liking cljdoc? Tell your friends :D

trident.firebase

Functions for authenticating Firebase user tokens.

Functions for authenticating Firebase user tokens.
raw docstring

app-instanceclj

(app-instance firebase-key)
source

auth-instanceclj

(auth-instance firebase-key)
source

init-firebase!clj

(init-firebase! firebase-key app-name)

Calls com.google.firebase.FirebaseApp/initializeApp.

  • firebase-key: the contents of your *-firebase-adminsdk-*.json file
  • app-name: the name to initialize this app under. See [[com.google.firebase.FirebaseApp/initializeApp]]
Calls `com.google.firebase.FirebaseApp/initializeApp`.

- `firebase-key`: the contents of your `*-firebase-adminsdk-*.json` file
- `app-name`: the name to initialize this app under. See
  [[com.google.firebase.FirebaseApp/initializeApp]]
sourceraw docstring

verify-tokenclj

(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)

Returns nil if token is invalid. If needed, initializes the firebase app with the hash of firebase-key as the app name. See init-firebase!.

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)

Returns `nil` if `token` is invalid. If needed, initializes the firebase app
with the hash of `firebase-key` as the app name. See [[init-firebase!]].
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close