Skip to main content

find_duplicate_identity

Function find_duplicate_identity 

Source
pub fn find_duplicate_identity(
    provider: OAuthProviderId,
    account_id: &str,
    except: &Account,
) -> Result<Option<Account>, String>
Expand description

Duplicate-identity guard for login: returns the account (of the same provider, other than except) that already stores account_id.