I’m trying to implement an integration, and I’m stuck on the Connection label (meaning, it doesn’t show up necessary information).
I’d like to extract data from JWT token I receive from OAuth provider and use it as the Connection label, but I found no documentation on this subject. Is it actually possible?
I think, requesting user additional information, in order to put it into the label, is clumsy, especially when we have params in tokens.
Best regards,
Alexander Mustafin
Best answer by ikbelkirasan
@sashker - Assuming the token is stored in authData.access_token and the connection label is set to {{username}} , try using the code snippet below in the authentication test function to parse the JWT token:
const userData = parseJwt(bundle.authData["access_token"]) // Assuming the token is stored in `access_token`. Calling this function would parse the token
return { username: userData.username }
This post has been closed for comments. Please create a new post if you need help or have a question about this topic.
@sashker - Assuming the token is stored in authData.access_token and the connection label is set to {{username}} , try using the code snippet below in the authentication test function to parse the JWT token:
const userData = parseJwt(bundle.authData["access_token"]) // Assuming the token is stored in `access_token`. Calling this function would parse the token
return { username: userData.username }
ZapConnect 2026 is coming
Join us September 23rd, 2026 for a free, one-day virtual event with 30+ sessions on AI automation. Get live build-alongs, playbooks, and strategies to lead AI transformation at your organization.