Helper function to exchange the code for a token and then get the user profile
then upsert the user and the session and set the token in a short live
cookie
Helper function to exchange the code for a token and then get the user profile
then upsert the user and the session and set the token in a short live
cookie