Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am jozefhruska on github.
  • I am jopear (https://keybase.io/jopear) on keybase.
  • I have a public key ASA8dHT50SQj_efaG7DmcmEjDZRdL6VsoHe2RBsY8KWWJgo

To claim this, I am signing this object:

@jozefhruska
jozefhruska / main.js
Created Sep 6, 2021
Auth0 Action - Account linking
View main.js
/**
* Handler that will be called during the execution of a PostLogin flow.
*
* @param {Event} event - Details about the user and the context in which they are logging in.
* @param {PostLoginAPI} api - Interface whose methods can be used to change the behavior of the login.
*/
exports.onExecutePostLogin = async (event, api) => {
const axios = require("axios");
const ManagementClient = require("auth0").ManagementClient;