setDIDAuthCallback method

void setDIDAuthCallback(
  1. bool callback(
    1. String peerDID
    )
)

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;
}