Code works with newer instruction on oauth