Ecstabis
Ecstabis•9mo ago

email in access token

Is it possible to include the email in the access token (jwt)?
3 Replies
Ecstabis
EcstabisOP•9mo ago
I added a flow on complement token - pre access token creation.
function email (ctx, api) {
api.v1.claims.setClaim('email', ctx.v1.getUser().human.email);
}
function email (ctx, api) {
api.v1.claims.setClaim('email', ctx.v1.getUser().human.email);
}
I'm not sure if this is the best way to get this result
FFO
FFO•9mo ago
Yeah ATM that is the way it should work
Ecstabis
EcstabisOP•9mo ago
👌

Did you find this page helpful?