Tweaks to OAuth entities expiration: changed default to 30 days, removed hardcoded values usage, fixed OAuthView (expires_in).

This commit is contained in:
Ivan Tashkinov 2020-12-09 21:14:39 +03:00
commit 7fff9c1bee
8 changed files with 14 additions and 17 deletions

View file

@ -11,7 +11,7 @@ defmodule Pleroma.MFA.Token do
alias Pleroma.User
alias Pleroma.Web.OAuth.Authorization
@expires 3600 * 24 * 30
@expires 300
@type t() :: %__MODULE__{}