I occasionally get auth errors when I use mastodon.el. This seems to work around them:
(defun my-mastodon-clear-auth ()
"Fix alist-get: Wrong type argument: listp, (error . \"The access token is invalid\") error."
(interactive)
(setq mastodon-auth--token-alist nil))