refactor

changed so that it gets passed a class and not a symbol as
authenticator, since there’s not need for that