Skip to main content
When the current session lapses, or null before ready() resolves (and after destroy()). refreshSession() updates this value. Check it to refresh ahead of expiry rather than waiting for a call to fail.

Example