keratin / authn-js

JavaScript client library for Keratin AuthN
GNU Lesser General Public License v3.0
45 stars 20 forks source link

importSession API #28

Closed cainlevy closed 6 years ago

cainlevy commented 6 years ago

importSession is a simpler version of restoreSession in that it does not check the status of the current session to efficiently resume on a page load. Instead, it immediately executes a refresh in case the user still has a valid refresh token.

This is useful for the final step of OAuth and for SSO.