2. Include the Gateway Context Provider (more info)
You can access the Gateway token by using the Gateway Provider that is part of the library.
For a list of required and optional properties, please review the detailed section on the Gateway Context Provider.​
Note:
The useGateway hook will only work in components wrapped by <GatewayProvider> . The Civic Pass state cannot be used outside of the <GatewayProvider> context. It's suggested to place the <GatewayProvider> as high up in the component tree as possible, to ensure the Civic Pass state is available throughout the dApp.