constants: add as_public constant and use it everywhere
[akkoma] / lib / pleroma / web / oauth / token.ex
index 90c304487fd61377dcffc69ecf2c4bc3a1f4b2c8..40f131b5771f3b757c80813a9c7c121824a41728 100644 (file)
@@ -44,8 +44,7 @@ defmodule Pleroma.Web.OAuth.Token do
     |> Repo.find_resource()
   end
 
-  @spec exchange_token(App.t(), Authorization.t()) ::
-          {:ok, Token.t()} | {:error, Changeset.t()}
+  @spec exchange_token(App.t(), Authorization.t()) :: {:ok, Token.t()} | {:error, Changeset.t()}
   def exchange_token(app, auth) do
     with {:ok, auth} <- Authorization.use_token(auth),
          true <- auth.app_id == app.id do