Skip to content

Instantly share code, notes, and snippets.

@mdemin914
Created May 27, 2021 22:52
Show Gist options
  • Save mdemin914/f566e14f835df99de4ed10869b906ce4 to your computer and use it in GitHub Desktop.
Save mdemin914/f566e14f835df99de4ed10869b906ce4 to your computer and use it in GitHub Desktop.
function addYourData(user, context, callback) {
user.app_metadata = user.app_metadata || {}
context.idToken['https://pick.some.namespace/your_data'] =
user.app_metadata.your_data
callback(null, user, context)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment