firestore-db-and-auth 0.2.2

This crate allows easy access to your Google Firestore DB via service account or OAuth impersonated Google Firebase Auth credentials.
Documentation
1
2
3
4
5
6
7
8
9
#!/bin/bash -e
[[ $(fgrep -r 'println' src/ | wc -l) -eq 0 ]] || { echo >&2 'Left over println!'; exit 1; }
if [ "$(uname)" == "Darwin" ]; then
    echo $SERVICE_ACCOUNT_JSON | base64 -D > firebase-service-account.json
else
    echo $SERVICE_ACCOUNT_JSON | base64 -d > firebase-service-account.json
fi
head -n 3 firebase-service-account.json
[[ $(jq -r ".auth_uri" firebase-service-account.json) == "https://accounts.google.com/o/oauth2/auth" ]] || { echo >&2 'Failed to extract firebase-service-account.json'; exit 1; }