Function wicrs_server::api::invalidate_all_tokens [−][src]
pub async fn invalidate_all_tokens(auth_manager: Arc<RwLock<Auth>>, user_id: ID)
Invalidates all of a user’s authentication token sessions.
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.