Looks like they do the same thing? When would I use one vs the other?
http://auth0.github.io/auth0.js/global.html#renewAuth
http://auth0.github.io/auth0.js/global.html#checkSession
They do the same thing but checkSession is easier (no callback page). We're only recommending checkSession from now on.
@luisrudge Does that mean that with checkSession, we no longer need to manually implement/call postMessage on redirect?
@johnlim yes! That's the beautiy of it. You can remove the silent-callback.html file 馃帀
@luisrudge I'm not sure if its a bug but when I call checkSession() without passing in responseType, I get a responseType is required error. However, iirc, instantiating webAuth defaults it to token if no redirectUri is provided. Therefore, I should not get a responseType is required it should be set to the default value. Did something change in V9?
There's no default for response_type, I just removed that info from the readme: https://github.com/auth0/auth0.js/pull/697
If you don't provide a global
responseType, you will have to provide aresponseTypefor each method that you use
I ended up using just localstorage bare and then checking for keyval pairs with more distinct names. I am using chrome on ubuntu 16.04. Definitely not in private mode. Anyway, I found a solution that works. I will try to write a better bug report by the weekend.
Most helpful comment
@johnlim yes! That's the beautiy of it. You can remove the silent-callback.html file 馃帀