Created
September 18, 2020 08:56
-
-
Save dmnkgrc/df450a64046c030872dfa0204ab181f4 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
| local claims = { | |
| email_verified: true | |
| } + std.extVar('claims'); | |
| { | |
| identity: { | |
| traits: { | |
| [if "email" in claims then "email" else null]: claims.email, | |
| [if "name" in claims then "name" else null]: claims.name, | |
| [if "picture" in claims then "picture" else null]: claims.picture | |
| }, | |
| }, | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment