Parameters
Returns
Promise<CreateDelegationResult>
The delegation ID.
Throws
IfexpiresAt is not a valid date or is not in the future.
Promise<CreateDelegationResult>
The delegation ID.
expiresAt is not a valid date or is not in the future.