integration-libRust crate from identity.com's on-chain-identity-gateway repository and call it when a presence of valid token is required. For example, before minting an NFT, adding a new order to an order-book or granting access to a gated section.
userWallet: The wallet account for the dApp user (e.g. the trader in a defi application) . A Civic Pass must have been already issued to this wallet.
gateway_token: The address of the Civic Pass (token). This address can be accessed in the dApp through the
useGatewayhook on the Civic React Component once the user has passed Gatekeeper verification.
GatewayErrorif something goes wrong or the token is invalid. The possible values can be seen in error.rs . For error cases, the dApp smart contract should reject the transaction.