How to handle reset password flow in wix headless sdk

Question:
What do after we send reset password link to a user using sendresetpasswordemail api from wix sdk

Product:
Wix headless and wix sdk along with next js

i created a button that sends the email to user using wixclient.auth.sendresetpasswordemail function but what am i supposedto do after that the user recieves the mail and clicking on the mail directs him to my website/so/tr/[id]/c?w: i am guessing i am reciving token in params, but what am i supposed to do here, there is nothing in documentation what to do with the url and i am assuming it is token is it really token or something else, am i suppose to extract these values using some other function and send it?