Function
Replace the "irc" with the entry of created pass.
(lambda () (auth-source-pass-get 'secret "irc")
Example within a function
(defun run-erc ()
(interactive)
(erc-tls :server "chat.sr.ht" ;; this is the soju bouncer of sourcehut
:port 6697
:nick "cashmere1337" ;; my libera.chat nick
:user "cashmere/irc.libera.chat@workstation" ;; username displayed in libera.chat (cashmere)
:password (lambda () (auth-source-pass-get 'secret "irc"))))
;; personal access token