Not able to get access token even after successfull login in angular

oktaauth.getaccesstoken() is giving null only transaction storage is there in local storage no access token there I am using okta callbackcomponent for redirect


If you have not already done so I suggest running the Okta Angular Sample applications.
There is a custom login and a redirect login sample depending which you are setting up.

Thank You,

thanks for your reply same code is working in my machine but where as in remote desktop it is not working it has status code 302 but not able to get access_token

not able figure out what exactly the issue is and where i am getting the issue here but in my local machine it is working

I am following okta-angular from @okta/okta-angular - npm