pub async fn accept_pairing(
store: &dyn ChannelBindingStore,
code: &str,
user_id: &str,
groups: &[String],
now: DateTime<Utc>,
) -> Result<ChannelBinding>Expand description
Pairs the account whose request was sent code to user_id with groups (spec 3.3 §10
K1): the control plane’s POST /kernel/channels/pair.
§Errors
Returns KernelError::Unauthorized for a wrong, used or expired code, and the store’s
error.