MCPcopy Create free account
hub / github.com/Flagsmith/flagsmith / generate_token

Function generate_token

api/integrations/github/client.py:53–62  ·  view source on GitHub ↗
(installation_id: str, app_id: int)

Source from the content-addressed store, hash-verified

51
52
53def generate_token(installation_id: str, app_id: int) -> str:
54 auth: Auth.AppInstallationAuth = Auth.AppAuth(
55 app_id=str(app_id), private_key=settings.GITHUB_PEM
56 ).get_installation_auth(
57 installation_id=int(installation_id),
58 token_permissions=None,
59 )
60 Github(auth=auth)
61 token = auth.token
62 return token
63
64
65def generate_jwt_token(app_id: int) -> str:

Calls

no outgoing calls

Used in the wild real call sites across dependent graphs

searching dependent graphs…