MCPcopy Index your code
hub / github.com/hunvreus/devpush / get_github_oauth_client

Function get_github_oauth_client

app/dependencies.py:44–56  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42
43@lru_cache
44def get_github_oauth_client() -> OAuth:
45 settings = get_settings()
46 oauth = OAuth()
47 oauth.register(
48 "github",
49 client_id=settings.github_app_client_id,
50 client_secret=settings.github_app_client_secret,
51 access_token_url="https://github.com/login/oauth/access_token",
52 authorize_url="https://github.com/login/oauth/authorize",
53 api_base_url="https://api.github.com/",
54 client_kwargs={"scope": "user:email"},
55 )
56 return oauth
57
58
59async def get_github_primary_email(oauth_client: OAuth, token: dict) -> str | None:

Callers

nothing calls this directly

Calls 1

get_settingsFunction · 0.90

Tested by

no test coverage detected