b64encoding requirement for uploading with keys
It's going to be difficult to get 100% code coverage, but we can at least ensure that checkAuth works properly.