Created
August 23, 2017 22:49
-
-
Save vuongngo/13a1282c0d34518d3ff82318eaf33d76 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 (user, context, callback) { | |
var namespace = 'your_domain'; | |
context.idToken[namespace + 'app_metadata'] = user.app_metadata; | |
context.idToken[namespace + 'user_metadata'] = user.user_metadata; | |
callback(null, user, context); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment