/*
* Copyright (c) Gabriel Amihalachioaie, SimpleG 2023.
*/usecrate::auth::jwt_token::JwtToken;usecrate::error::Error;pubtraitTokenValidator{////// Validates the specified token.
////// # Arguments
////// * `token` - Token to be validated.
////// # Returns
////// * `Ok` - Token.
/// * `Err` - Error if the validation has failed.
/// Having the error kind valued as `INVALID_TOKEN` if the token is invalid.
fnvalidate(&self, token:&str)->Result<JwtToken, Error>;}