Hi, can I find an example of a `setUserIdMapping` function implementation somewhere ?
b
Hi, can I find an example of a
setUserIdMapping
function implementation somewhere ?
r
Hey! So you want an example where you are storing a mapping of supertokens and an external user id in table?
b
If possible, it would be great. You are storing both of them in supertokens tables or in an external one ?
r
in a table managed by supertokens core.
Let’s do one thing. We are about to release a new version of the core by tomorrow or day after which has a complete implementation of user id mapping. Once that’s released, it will be much easier for you to implement this.
b
So I need to add a column to thirdparty_users table with external_userId for example ?
Oh
That sound amazing
Haha
r
Yup! So maybe we can get on a call after that to help you integrate with that? Cause the backend SDKs will still take sometime to release, so a call might help to show you how to query the core manually
b
I'll try by my side and if I really struggle with it I will reach you. I don't want to take some of your time
Will any documentation be released with the feature ?
That lists the routes that I'll need ?
r
The docs will be updated, but not until we have changed the backend SDKs. Which might take some time. That’s why I was suggesting a call
The list of routes will be updated though. Yea
You can follow this GitHub issue to know when it’s release https://github.com/supertokens/supertokens-core/issues/463
b
That's very kind from you, I'll contact you if I'm struggling with it !
r
Sounds good