getSessionInfo

Deprecation Notice

This SDK is deprecated in favor of the Core and UI JS SDKs. See Migrating to the latest SDKs to use the latest Core and UI SDKs.

Support for the Legacy JS SDK ends on 28 February, 2021.

reach5('getSessionInfo',
  callback: function,
}

About this command

Check the state of the current’s SSO session, and return an SSO session object.

Examples

reach5('getSessionInfo', function (err, result) {
  if (result.isAuthenticated) {
    // do something
  } else {
    // do something else
  }
});

Parameters

callback string

Event callback that was used with on.