aboutsummaryrefslogtreecommitdiff
path: root/sx-auth.el
diff options
context:
space:
mode:
Diffstat (limited to 'sx-auth.el')
-rw-r--r--sx-auth.el7
1 files changed, 3 insertions, 4 deletions
diff --git a/sx-auth.el b/sx-auth.el
index bbd84e2..3cb7217 100644
--- a/sx-auth.el
+++ b/sx-auth.el
@@ -1,4 +1,4 @@
-;;; sx-auth.el --- user authentication -*- lexical-binding: t -*-
+;;; sx-auth.el --- user authentication -*- lexical-binding: t; -*-
;; Copyright (C) 2014 Sean Allred
@@ -89,7 +89,8 @@ will be (METHOD . t)")
Keywords are of form (OBJECT TYPES) where TYPES is (FILTER FILTER
FILTER).")
-(defun sx-auth-authenticate ()
+;;;###autoload
+(defun sx-authenticate ()
"Authenticate this application.
Authentication is required to read your personal data (such as
notifications) and to write with the API (asking and answering
@@ -135,8 +136,6 @@ parsed and displayed prominently on the page)."
(error "You must enter this code to use this client fully"))
(sx-cache-set 'auth `((access_token . ,sx-auth-access-token)))))
-(defalias 'sx-authenticate #'sx-auth-authenticate)
-
(defun sx-auth--method-p (method &optional submethod)
"Check if METHOD is one that may require authentication.
If it has `auth-required' SUBMETHODs, or no submethod, return t."