Program catches json and stores it, and now also stores refresh token to a file.