pub(super) fn relink(
state: &AppState,
agent_id: &str,
to: &IdentityAccount,
provider: &str,
) -> Result<Vec<Failed>, String>Expand description
Link agent_id to to for provider: unlink its rows stored under an
alias of the provider first (one would otherwise silently win at the next
spawn), then link, then clear the failures its old account caused. Returns the panes among them whose turn
failed on the login: they are told they are signed in once restarted on to, not here
(super::resume::start).