Yes. That's certainly possible. What you want to d...
# support-questions
r
Yes. That's certainly possible. What you want to do is: - override the
createNewSession
function from the session recipe - in the override, one of the the inputs to that function is the
userId
. You want to fetch all existing sessions of that user, if that array has length == 0, then you can call the original implementation (of createNewSession), else you can call the revokeSession function for all the existing sessions of that user, and then call the original implementation (of createNewSession)
2 Views