Hello everyone,
I ran into an Invalid Client ID trying to run my Jamming project. I was going through my code and comparing with others after reading and my problem is at getAccessToken(), my VScode keeps changing my window.setTimeout().
I’ve worked with other online follow alongs so I assume maybe it is a setting I have but even with Prettier extension etc this fix just doesn’t seem to make sense?
The first thing I notice is that you use setTimeout as a property of window. You can use it as a standalone function. As a second try you could wrap the function body in curly braces. You don’t need the return value anyway:
Hi! Thank you for the response, I tried your suggestion but it did not change that I keep getting an Invalid Client Id. so perhaps it has nothing to do with this particular function?
so I am following along with the instructions and the getUnstuck video which has us do this
And the video says it the setTimeout is used on Window to make sure that we are not trying to access the token after it has expired and the window part is important since we are accessing this token via the current URL. (window.location.href)