Auth0.js: Document difference between renewAuth and checkSession

Created on 27 Dec 2017  路  6Comments  路  Source: auth0/auth0.js

Most helpful comment

@johnlim yes! That's the beautiy of it. You can remove the silent-callback.html file 馃帀

All 6 comments

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 a responseType for 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.

Was this page helpful?
0 / 5 - 0 ratings