DID
DID Login Process
1 Check if the address has a DID
final client = Provider.of<Client>(context, listen: false);
SDNDIDListResponse response = await client.getDIDList(address: address);Name
Type
Description
Required
Name
Type
Description
Required
2 Log into a DID or register an address.
final client = Provider.of<Client>(context, listen: false);
String responseStr;
if (response1.data.isNotEmpty) {
responseStr = await client.postPreLoginDID(DID: response1.data[0]);
} else {
responseStr = await client.postPreLoginDID(address: address);
}Name
Type
Description
Required
Name
Type
Description
Required
3 Sign the message that was returned in step 2
Name
Type
Description
Required
Name
Type
Description
Name
Type
Description
Required
4 Log out
Name
Type
Description
Required
Last updated