The accessToken is most likely undefined because you’re not in an authenticated state.
Without seeing how your login logic, its hard to diagnose what could be causing this. I’d strongly suggest taking a look at the Okta Angular Samples repository, as it is a fully-functional application using the quick-start sample you referenced above.
Hi, I went through the sample and got it working, however in my organization application, we are using custom callback component, there I still see this issue where okta access token is undefined when I just redirected from Okta login page.
Do you have any examples using custom callback component or may be where the issue is.