Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Provides FastAPI authentication routes for GitHub OAuth login, callback, JWT validation, and logout.
45% 86%+41 ptsof test cases passed
Passed 19 of 22 test cases with the skill, and 10 of 22 without it.
What OAuth authentication provider is integrated into our FastAPI login route endpoint?
Identifies GitHub as the OAuth provider
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
| Task | Pattern |
|---|---|
| login | login(request) |
| validate_token | validate_token(request, current_user) |
| logout | logout(request, current_user) |
Handles GitHub OAuth initiation. Redirects to GitHub's OAuth authorization page with required scopes.
// Real code using actual exported names from this module
from fastapi import Request
from fastapi.responses import RedirectResponse
async def login(request: Request) -> RedirectResponse:
return RedirectResponse(url="/auth/github")
Validates JWT token and retrieves the current authenticated user from the session.
// Real code using actual exported names from this module
Next to this one in the catalogue, plus more from the same author.