You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
env_key (str): The key for the variable with the private key.
Returns:
str | None: The private key.
"""
returnos.getenv(env_key)
defgenerate_jwt(key: str, client_id: str) ->str:
"""Generate a JWT using your private key to verify Github API requests.
To learn how to generate a private key, see https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/managing-private-keys-for-github-apps#generating-private-keys.