# GitHub OAuth in your Python Flask app

DevFeed: [GitHub OAuth in your Python Flask app](<https://devfeed.tech/articles/github-oauth-in-your-python-flask-app-468.md>)

Original publisher: [Read original article](<https://supabase.com/blog/oauth2-login-python-flask-apps>)

Author: Andrew Smith

Published: 2023-11-21T07:00:00Z

Content type: tutorial

Language: en

Sources: [Supabase Blog](<https://devfeed.tech/sources/supabase-blog.md>)

Topics: [Flask](<https://devfeed.tech/topics/flask.md>), [OAuth](<https://devfeed.tech/topics/oauth.md>), [OAuth 2.0](<https://devfeed.tech/topics/oauth2.md>), [Supabase](<https://devfeed.tech/topics/supabase.md>), [Authentication](<https://devfeed.tech/topics/authentication.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [airflow](<https://devfeed.tech/topics/airflow.md>), [CadQuery](<https://devfeed.tech/topics/cadquery.md>)

Tags: [authentication](<https://devfeed.tech/tags/authentication.md>), [callback](<https://devfeed.tech/tags/callback.md>), [flask](<https://devfeed.tech/tags/flask.md>), [github](<https://devfeed.tech/tags/github.md>), [guide](<https://devfeed.tech/tags/guide.md>), [integration](<https://devfeed.tech/tags/integration.md>), [jwt](<https://devfeed.tech/tags/jwt.md>), [oauth](<https://devfeed.tech/tags/oauth.md>), [oauth2](<https://devfeed.tech/tags/oauth2.md>), [python](<https://devfeed.tech/tags/python.md>), [web-app](<https://devfeed.tech/tags/web-app.md>)

## AI overview

A step-by-step guide to adding GitHub OAuth2 login to a Python Flask web app using Supabase. It covers installing the library, configuring session storage for JWTs, initializing the Supabase client, creating sign-in and callback routes, and exchanging the authorization code for a session.

## Source excerpt

A step-by-step guide on building Login with GitHub into your Python apps.