Authorizing API Calls Through OKTA Login

Hello,

I am trying to use the same getAccessToken() method as described in

https://developer.okta.com/docs/guides/sign-into-spa/vue/use-the-access-token/?_ga=2.216520662.1770592510.1613775436-925127037.1613775436

But that method doesn’t grab my token all the time. Please see my other thread (the only other one on my profile)