in app bridge react 4 with the app bridge JS tag added to your index.html you don’t need that session token since all fetch calls are wrapped and add that token automatically however if you still need it you can use this :
https://shopify.dev/docs/api/app-bridge-library/apis/id-token
where shopify is the variable u get this way :
const shopify = useAppBridge()