next-ory/docker/ory-dev/ory/kratos/twitch.data-mapper.jsonnet
2024-05-03 05:50:03 +02:00

11 lines
No EOL
224 B
Jsonnet

local claims = std.extVar('claims');
{
identity: {
traits: {
[if 'email' in claims && claims.email_verified then 'email' else null]: claims.email
},
metadata_public: claims,
},
}