How to get Slack specific user data?
Hi, I'm using Slack authentication and have configured "scopes" in Slack App. I'm wondering how to retrieve slack data like workspaceId from Kinde nextjs sdk?
3 Replies
Hi Wayne. So you've configured the Slack auth and it works, but you want to include the workspace ID when the user authenticates?
that's correct, as well as Slack userId and access token. Is it possible right now?
Yes. It's possible. You can create custom properties that map to user profiles, and then include those properties in the token. Heres the docs: https://docs.kinde.com/properties/work-with-properties/properties-in-tokens/
You'll need to access the Slack API to request the info, and then map it back to the property in Kinde using the property Key.
Does this make sense?
Does this make sense?