From 23639acd50d3fd996691a1b20d121db34d8ba1c6 Mon Sep 17 00:00:00 2001 From: Sean Stiglitz Date: Sun, 21 Aug 2022 10:10:49 -0700 Subject: [PATCH] doc: clarify behavior of token_endpoint parameter Add language explaining the token_endpoint parameter is actually optional and what happens when included or omitted. Signed-off-by: Sean Stiglitz Acked-by: Robin Jarry --- doc/aerc-imap.5.scd | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/doc/aerc-imap.5.scd b/doc/aerc-imap.5.scd index 25833a9..6fbf1f9 100644 --- a/doc/aerc-imap.5.scd +++ b/doc/aerc-imap.5.scd @@ -40,10 +40,12 @@ available: *oauth2_params:* - If specified, the configured password is used as an refresh token that - is exchanged with an access token + If specified and a token_endpoint is provided, the configured password + is used as a refresh token to obtain an access token. If token_endpoint + is omitted, refresh token exchange is skipped, and the password acts + like an access token instead. - - token_endpoint (required) + - token_endpoint (optional) - client_id (optional) - client_secret (optional) - scope (optional)