Function wicrs_server::api::invalidate_token[][src]

pub async fn invalidate_token<S: Into<String>>(
    auth_manager: Arc<RwLock<Auth>>,
    user_id: ID,
    token: S
)

Invalidates a specific authentication token for a user.

Arguments

  • auth_manager - The Authentication manager for the current server instance, wrapped in Arc> so that it can be used by multiple threads.
  • user_id - ID of the user whose tokens should be invalidated.
  • token - Token to be invalidated.