/// Check if a user is already registered by a token
Check if a user is already registered by a token
Check if a user is already registered by a token
pub fn check_user(
    request: Json<CheckUserRequest>,
    auth_service: AuthService,
) -> AnyApiResult<CheckUserResponse> {
    auth_service.check_user(request.0).into()
}
pub fn check_user ( request : Json < CheckUserRequest > , auth_service : AuthService , ) -> AnyApiResult < CheckUserResponse > { auth_service . check_user ( request . 0 ) . into ( ) }
Check if a user is already registered by a token
Check if a user is already registered by a token
request
Json<CheckUserRequest>
auth_service
AuthService