Hello,
I'm currently implementing passwordless with text messages in nodeJS (fastify).
We always identify users by the their phone and don't store supertokens user ids on our own DB hence I need the phone to be either on sessionData or accessToken.
I could not find a way to decorate my session with the phone number of a user.
At first I thought I could add it in
userCtx
createAndSendCustomTextMessage: async (input, userCtx) =>...
but that does not seem to propagate to a
createNewSession
override.
Does someone have an idea on how to achieve this?