Hello !
We've started implementing feature flag in our app (react + nestJs backend), and we'd like to use SuperToken session to pass the informations concerning which feature a user has acces to.
So far to add data to the session we are overriding the CreateNewSession of the Session recipe and adding the data into the input.accessTokenPayload object.
This is somewhat working, but we have to revoke all sessions of the users when the features flags are getting updated.
(And even that sometime for some reason isn't enough).
So I am wondering if there is a way to add data to the session in a way that it would update automatically and instantly for the users ?