App Development Using Remix and Node js

How to implement the OAuth flow on node JS and after successfully authenticating how to redirect to the remix landing page ?