Setup auth in server rather than plugin.