Added state field to generate_auth_url