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

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

  In charge of loading a a GitHub app .pem and generating a JSON Web Token from
  it.
  """

  @doc """
  Generates a JWT from the GitHub App's generated RSA private key using the
