DEV Community

Michael Vogt
Michael Vogt

Posted on

How to oAuth2 Code Flow in Tanstack Start

I just developed a Tanstack-Start example for an OAuth2 Code-Flow login to github and google.

I did not use any existing libraries but oriented rather on this very simple expressJS implementation from https://www.youtube.com/watch?v=rRn2EisxPl4

The special thing with TanStack Start is: no need for some express Server any more because we can use tanStack Start Server Functions.

https://tanstack.com/router/latest/docs/framework/react/start/server-functions

Here is my example:

https://github.com/progwise/tanstack-auth-examples

Enjoy!
Michael

Top comments (0)