Search…
Using Cargo With Fortmatic
You can easily use Fortmatic with Cargo by providing Cargo with the Fortmatic Provider.
You can set the provider when initializing Cargo or you can update the provider after initialization.
Setting the provider during initialization
1
const fortmatic = new Fortmatic(FORTMATIC_KEY);
2
​
3
const cargo = new Cargo({ provider: fm.getProvider() });
Copied!
Setting the provider after initialization
1
const fortmatic = new Fortmatic(FORTMATIC_KEY);
2
​
3
const cargo = new Cargo();
4
​
5
// Things happen and then ....
6
​
7
cargo.setProvider(fm.getProvider());
Copied!
​
Last modified 28d ago
Copy link