IsLoggedIn

The IsLoggedIn property returns true if the embed client has an authenticated user.

pyramidEmbedApi.isLoggedIn: boolean
  • Use this property to check if the embed cookie has a valid authentication token.

Example

The following initializes a new embed client for the target instance of Pyramid. The property returns "TRUE" if authenticated, otherwise "FALSE";

var client = new pyramidEmbedClient("https://analytics.pyramid.com"); client.init("john","ab123!"); var check= client.isLoggedIn;