Tweaks to OAuth entities expiration: changed default to 30 days, removed hardcoded values usage, fixed OAuthView (expires_in).
This commit is contained in:
parent
c308224aaf
commit
7fff9c1bee
8 changed files with 14 additions and 17 deletions
|
|
@ -648,7 +648,7 @@ config :pleroma, :email_notifications,
|
|||
}
|
||||
|
||||
config :pleroma, :oauth2,
|
||||
token_expires_in: 600,
|
||||
token_expires_in: 3600 * 24 * 30,
|
||||
issue_new_refresh_token: true,
|
||||
clean_expired_tokens: false
|
||||
|
||||
|
|
|
|||
|
|
@ -2540,7 +2540,7 @@ config :pleroma, :config_description, [
|
|||
key: :token_expires_in,
|
||||
type: :integer,
|
||||
description: "The lifetime in seconds of the access token",
|
||||
suggestions: [600]
|
||||
suggestions: [2_592_000]
|
||||
},
|
||||
%{
|
||||
key: :issue_new_refresh_token,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue