aboutsummaryrefslogtreecommitdiff
path: root/lib/pleroma/web/oauth/token.ex
diff options
context:
space:
mode:
authorAriadne Conill <ariadne@dereferenced.org>2019-07-29 02:43:19 +0000
committerAriadne Conill <ariadne@dereferenced.org>2019-07-29 02:43:19 +0000
commitb93498eb5289dc92587b77c316ed9f697bb9e5c8 (patch)
tree111e1e9af9aa8c2ea40989e1897320b34c796ace /lib/pleroma/web/oauth/token.ex
parent9d78b3b281ff7f758d4e0dce19fd74d938e47ccc (diff)
downloadpleroma-b93498eb5289dc92587b77c316ed9f697bb9e5c8.tar.gz
constants: add as_public constant and use it everywhere
Diffstat (limited to 'lib/pleroma/web/oauth/token.ex')
-rw-r--r--lib/pleroma/web/oauth/token.ex3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pleroma/web/oauth/token.ex b/lib/pleroma/web/oauth/token.ex
index 90c304487..40f131b57 100644
--- a/lib/pleroma/web/oauth/token.ex
+++ b/lib/pleroma/web/oauth/token.ex
@@ -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