aboutsummaryrefslogtreecommitdiff
path: root/lisp/mastodon-auth.el
diff options
context:
space:
mode:
authormousebot <mousebot@riseup.net>2021-10-15 15:10:13 +0200
committermousebot <mousebot@riseup.net>2021-10-15 15:10:13 +0200
commite93adbde20d8f8f0d0e3810ebc3f1890d362dae4 (patch)
treeb4e94c747a3510e9b3f9dc293a8237ae8033d93f /lisp/mastodon-auth.el
parent6b2207251c9b44cd47cc03c8f9a68970e123c5d6 (diff)
rever auth / client changes too
Diffstat (limited to 'lisp/mastodon-auth.el')
-rw-r--r--lisp/mastodon-auth.el18
1 files changed, 9 insertions, 9 deletions
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index cd74ef8..6729e81 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -98,15 +98,15 @@ Reads and/or stores secrets in `MASTODON-AUTH-SOURCE-FILE'."
(prog1
(mastodon-http--post
(concat mastodon-instance-url "/oauth/token")
- `(("client_id" ,(plist-get (mastodon-client) :client_id))
- ("client_secret" ,(plist-get (mastodon-client) :client_secret))
- ("grant_type" "password")
- ("username" ,(plist-get credentials-plist :user))
- ("password" ,(let ((secret (plist-get credentials-plist :secret)))
- (if (functionp secret)
- (funcall secret)
- secret)))
- ("scope" "read write follow"))
+ `(("client_id" . ,(plist-get (mastodon-client) :client_id))
+ ("client_secret" . ,(plist-get (mastodon-client) :client_secret))
+ ("grant_type" . "password")
+ ("username" . ,(plist-get credentials-plist :user))
+ ("password" . ,(let ((secret (plist-get credentials-plist :secret)))
+ (if (functionp secret)
+ (funcall secret)
+ secret)))
+ ("scope" . "read write follow"))
nil
:unauthenticated)
(when (functionp (plist-get credentials-plist :save-function))