def METHOD_NAME(token_string: str, context: dict) -> GcomToken | PluginAuthToken:
    token_parts = token_string.split(":")
    if len(token_parts) > 1 and token_parts[0] == "gcom":
        return check_gcom_permission(token_parts[1], context)
    else:
        return PluginAuthToken.validate_token_string(token_string, context=context)