Access Token undefined for Cookie storage type

We are recently switched to cookie storage for our token, but we observed that the
const accessToken = await this.props.authService.getAccessToken() is returning undefined. If we switch to localStorage the access token starts showing up. Is there any implicit behaviour in case of cookie storage that we need to understand?

Have you configured tokenManager appropriately? https://github.com/okta/okta-auth-js#the-tokenmanager

Yes, in the Security Component we have provided
<Security
issuer={oktaConfig.oidc.weekly.issuer}
pkce={true}
client_id={oktaConfig.oidc.weekly.clientId}
tokenManager={{storageKey: oktaConfig.oidc.weekly.storageKey, secure: true, storage:‘cookie’}}
redirect_uri={oktaConfig.oidc.weekly.redirectUri}
scope={oktaConfig.oidc.weekly.scope}>

The configuration is working fine if we use storage= ‘localStorage’, it is just when we enable the cookie and the accessToken is gone.

Were you able to fix the issue with cookie tokenManager config?