implementing-oauth

Integrate GitHub and Google OAuth 2.0 into Flask apps with Authlib.

1|2|Updated Feb 5, 2026
One-click install
npx skills add https://github.com/7a336e6e/skills --skill implementing-oauth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: implementing-oauth
Source: https://github.com/7a336e6e/skills/tree/main/auth/implementing-oauth
Command: npx skills add https://github.com/7a336e6e/skills --skill implementing-oauth

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines user authentication by enabling secure sign-in and account linking with GitHub and Google OAuth 2.0, reducing registration friction and enhancing user experience.

Core Features & Use Cases

  • OAuth 2.0 Authorization Code Flow: Implements the standard flow for secure authorization.
  • GitHub & Google Integration: Supports sign-in and account linking for both platforms.
  • Account Linking & Creation: Matches social logins to existing local accounts or creates new ones based on verified emails.
  • Use Case: Adding "Sign in with GitHub" or "Sign in with Google" buttons to your Flask application's login page.

Quick Start

Use the implementing-oauth skill to initiate the GitHub OAuth login process.

Frequently Asked Questions about implementing-oauth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Sign in with Google and GitHub OAuth 2.0 to my Flask application?

OAuth 2.0 account linking in Flask matches verified emails from social providers to existing local accounts or creates new ones, reducing registration friction while maintaining secure user authentication.

How does OAuth 2.0 account linking work when a verified email matches an existing local account?

OAuth 2.0 account linking in Flask matches verified emails from social providers to existing local accounts or creates new ones, reducing registration friction while maintaining secure user authentication.

Can I use Authlib to manage token exchange and JWT generation for authenticated sessions?

Yes, you can use Authlib to manage OAuth client registration and token exchange, subsequently generating JWT tokens to maintain authenticated user sessions within your Flask application.

Does this OAuth 2.0 implementation support the standard Authorization Code flow for Flask?

Yes, this implementation supports the standard OAuth 2.0 Authorization Code flow, securely integrating GitHub and Google social logins into Flask applications to handle user authentication.

Do I need a verified email address from GitHub or Google to create a new local account?

Yes, matching social logins to existing local accounts or creating new ones is explicitly based on receiving verified email addresses from the GitHub or Google OAuth providers.