Skip to main content

delete_user

Function delete_user 

Source
pub async fn delete_user(
    conn: &mut PgConnection,
    id: Uuid,
) -> ModelResult<Vec<Digest>>
Expand description

Soft-deletes the user and takes their OAuth credentials down with the account.

Returns the digests of the deleted access tokens so a caller holding the exercise-services token cache can evict them; otherwise a deleted account keeps authenticating that API from a cache hit until the entry ages out (see domain::exercise_services::token).