Skip to content

Instantly share code, notes, and snippets.

@balazsorban44
Created July 8, 2020 10:12
Show Gist options
  • Save balazsorban44/a90fd22112cffc81d4dea0aa0bd17743 to your computer and use it in GitHub Desktop.
Save balazsorban44/a90fd22112cffc81d4dea0aa0bd17743 to your computer and use it in GitHub Desktop.
function profile(profile) {
return ({
...profile,
id: profile.sub,
name: profile["http://domain.com/Events/Customer/Fullname"] ?? profile["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name"],
verified: profile["email_verified"] === "True",
})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment