Auto generate Auth change code