Created
May 27, 2021 22:52
-
-
Save mdemin914/f566e14f835df99de4ed10869b906ce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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