this is pretty standard. use oauth for api authentication and authorization and use any standard react auth packages or nextauth package to establish the connection.