You need to pass the domain to the provider:
cognitoUserPoolsTokenProvider.setKeyValueStorage(new CookieStorage({ domain: <your domain> }))
and sign out with with the param global: true
await signOut({ global: true })