#37 - Port the Google auth middleware from Katana.