Skip to content

Instantly share code, notes, and snippets.

View jozefhruska's full-sized avatar
🍐

Jozef Hruška jozefhruska

🍐
View GitHub Profile
@jozefhruska
jozefhruska / main.js
Created September 6, 2021 07:35
Auth0 Action - Account linking
/**
* 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;

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: