We need to provide the chain and the NFT collection, which the IDP Kit must check, when users are trying to log in. The values can be set in the config/idp-config.json
under default_nft_token_claim
EVM Tezos Near Polkadot Flow Algorand
Copy "default_nft_token_claim" : {
"EVM" : {
"chain" : "MUMBAI" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "0x3496756a84E186DC8C0d7ef91BcD393200ef5Ebc" ,
"collectionPath" : ""
}
}
Copy "default_nft_token_claim" : {
"TEZOS" : {
"chain" : "GHOSTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "KT1Rc59ukgW32e54aUdYqVzTM9gtHrA4JDYp" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
NFT collection configuration example:
Copy "default_nft_token_claim" : {
"NEAR" : {
"chain" : "TESTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "demo.khaled_lightency1.testnet" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
NFT collection configuration example:
Copy "default_nft_token_claim" : {
"POLKADOT" : {
"chain" : "OPAL" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "1062" ,
"collectionPath" : ""
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:5000" ,
"jsProjectExternalUrl" : "http://localhost:4000"
Copy "default_nft_token_claim" : {
"FLOW" : {
"chain" : "TESTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "0xa9ccb9756a0ee7eb" ,
"collectionPath" : "/public/exampleNFTCollection"
}
}
We also need to configure other properties in the same file:
Copy "externalUrl" : "http://localhost:8080" ,
"jsProjectExternalUrl" : "http://localhost:3000"
Copy "default_nft_token_claim" : {
"ALGORAND" : {
"chain" : "ALGORAND_TESTNET" ,
"factorySmartContractAddress" : "" ,
"smartContractAddress" : "GYFVJLKGSWQDHFBHBLABUXYHHSU544RV3WH4ZCF3S6HONSDP73TK4VGY3Y" ,
"collectionPath" : ""
}
}
In the "smartContractAddress":
You should provide the asset Creator Account
Now that we have finished the configuration, we need to rebuild the project for the changes to take effect, run the API and connect our client to it.