   In charge of loading a a GitHub app .pem and generating a JSON Web Token from
   it.
   """
-
-  @app_id Application.get_env(:code_corps, :github_app_id)
 
   @doc """
   Generates a JWT from the GitHub App's generated RSA private key using the

    Application.get_env(:code_corps, :github_app_pem)
    |> JOSE.JWK.from_pem()
  end
end

    %{}
    |> Joken.token
    |> Joken.with_exp(Timex.now |> Timex.shift(minutes: 5) |> Timex.to_unix)
    |> Joken.with_iss(app_id())
    |> Joken.with_iat(Timex.now |> Timex.to_unix)
    |> Joken.with_signer(signer)
    |> Joken.sign
