You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we want it to be available using an oauth2 access token (if it doesn't exists by the time you start, you can add a stub function for validateOAuth2AccessToken
it should have a related buildUserInfo in the RecipeInterface (a stub for this has been added, but feel free to modify it)
other recipes should be able to add their own "build" functions. check addClaimFromOtherRecipe
the API logic looks roughly like this:
validate the incoming access token
build the default user info in an overrideable buildUserInfo function:
create the basic user info (email, phone number, userid, etc) based on the scopes
call the functions set by other recipes passing the scopes, access token and userId to them and merging the result into the existing user info object (you can add params if you think something else is necessary)
return the user info object that we got back from buildUserInfo
The text was updated successfully, but these errors were encountered:
validateOAuth2AccessToken
buildUserInfo
in theRecipeInterface
(a stub for this has been added, but feel free to modify it)addClaimFromOtherRecipe
buildUserInfo
function:buildUserInfo
The text was updated successfully, but these errors were encountered: