https://devhubby.com/thread/how-to-get-access-token-when-using-functional