aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohnson Denen <johnson.denen@gmail.com>2017-04-09 19:24:15 -0400
committerJohnson Denen <johnson.denen@gmail.com>2017-04-09 19:24:15 -0400
commit50f0729dba11a95f40869844d32d89e0924afcc6 (patch)
tree130506e581d162e5305ea14859509cf6d981b43f
parent2f7193a32068ac68b86c45275e240df15c63ffd3 (diff)
Fix #1 by adding scope to auth token request
-rw-r--r--lisp/mastodon-auth.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/mastodon-auth.el b/lisp/mastodon-auth.el
index 06d7685..d01f687 100644
--- a/lisp/mastodon-auth.el
+++ b/lisp/mastodon-auth.el
@@ -84,7 +84,8 @@ Email address and password are not stored."
("client_secret" . ,(plist-get (mastodon--client-app) :client_secret))
("grant_type" . "password")
("username" . ,(read-string "Email: "))
- ("password" . ,(read-passwd "Password: ")))))
+ ("password" . ,(read-passwd "Password: "))
+ ("scope" . "read write follow"))))
(defun mastodon--access-token ()
"Returns `mastodon--api-token-string'.