Hey, I got a question which is more about how to handle edge cases in my backend
Im thinking of 2 edge cases where for some reason a user was created over at Descope but not in my backend, or where a user exist in my backend but doesnt not exist over at Descope
I guess these cases might occur if a descope signup didnt trigger properly my backend user creation, or if a delete_user action from my backend didnt trigger properly the descope deletion, or if issues occur during my user migration into descope and maybe more reasons
So im thinking of a way to solve this over at my end, where if an authenticated user arrives from descope AND doesnt have a user in my backend to create it on the fly, and for the second case, if a new user is created over at Descope - before i create it in my backend, to run a quick search for that user email - AND if the email exist already in my backend - add the descope_id to the existing user
I guess this could work but just wondered if you have any experience or best practices for the type of scenarios
Thanks!