setDIDAuthCallback method
Sets the callback function to be called when a DID authentication request is received.
callback
- The callback function that takes a peer DID as a parameter and returns a boolean indicating whether the authentication is accepted or not.
Implementation
void setDIDAuthCallback(bool Function(String peerDID) callback) {
didAuthCallback = callback;
}