0.5.0 • Published 1 year ago

@userhub/google-cloud-identity-platform-functions v0.5.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Google Cloud Identity Platform Functions

Helper functions for UserHub Identity Platform connection.

Usage

const {
  UserHubFunctions,
} = require("@userhub/google-cloud-identity-platform-functions");
const { auth } = require("firebase-functions");
const { defineSecret, defineString } = require("firebase-functions/params");

const API_KEY = defineSecret("USERHUB_API_KEY");
const CONNECTION_ID = defineString("USERHUB_CONNECTION_ID");

const functions = new UserHubFunctions({
  apiKey: API_KEY,
  connectionId: CONNECTION_ID,
});

exports.beforeSignIn = auth.user().beforeSignIn(functions.beforeSignIn);
0.5.0

1 year ago

0.4.0

1 year ago

0.3.0

1 year ago

0.2.0

1 year ago

0.1.0

1 year ago