def METHOD_NAME(self, user_code):
    """Check if user alredy authed and return it to token generator
    :param str user_code: user code
    :return: (str, bool) or None -- user dict and user auth status
    """
    result = self.server.db.getSessionByUserCode(user_code)
    if not result["OK"]:
        raise OAuth2Error("Cannot found authorization session", result["Message"])
    return (result["Value"]["user_id"], True) if result["Value"].get("username", "None") != "None" else None