Skip to content

Commit

Permalink
make "auth" method return access-token on success
Browse files Browse the repository at this point in the history
  • Loading branch information
Junker committed Jul 18, 2024
1 parent 36dedb0 commit a59a3bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gapi.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
(defmethod auth ((client client))
(let ((response (%auth (client-token-uri client)
(generate-jwt client))))
(setf (client-access-token client) (getf response :|access_token|)
(client-access-token-expires-at client) (+ (get-universal-time)
(getf response :|expires_in|)))))
(setf (client-access-token-expires-at client) (+ (get-universal-time)
(getf response :|expires_in|))
(client-access-token client) (getf response :|access_token|))))

(defmethod client-access-token-expired-p ((client client))
(> (get-universal-time)
Expand Down

0 comments on commit a59a3bf

Please sign in to comment.