How to link users with moralis v2 auth api

I set up a parse server from the demo repo. How should I go about setting up a linking mechanism? I am trying to rebuild account linking from v1. Is it as simple as authenticate the user’s address => check to see if address is linked to an existing user => if yes, log in as that user, => if no, log in as new user returned from step 1 ?

And also how would I go about setting up a react project inside of that example repo ? should I make a client directory and start there ? or start inside of the already given src directory ? I am asking this because I would like to use rainbowkit for wallet connecting, not just metamask like the example script in the repo

check to see if address is linked to an existing user => if yes, log in as that user, => if no, log in as new user returned from step 1 ?

Yes you can do that.

And also how would I go about setting up a react project inside of that example repo

You should use another folder for just the React app, separate the frontend and backend.