Function wicrs_server::api::invalidate_tokens [−][src]
pub async fn invalidate_tokens(auth_manager: Arc<RwLock<Auth>>, user: User)
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
- User whose tokens should be invalidated.