Skip to content

init() returns undocumented _sessionCreated key #233

Description

@SimonPrato11

Hello,

I noticed that getEmbedSDK().init(apiHost, auth) doesn’t seem to expose any clear way to know if the session was created successfully.

When inspecting the returned value, I found a _sessionCreated key being set internally — however, this key is not documented anywhere in the SDK reference.

I’d like to confirm:

  1. Whether _sessionCreated is a stable, public property that can be safely used in production.
  2. If not, is there an official or recommended way to detect when a session has been successfully initialized (or when it fails)?
  3. Could _sessionCreated (or similar session status handling) be documented?

Example

getEmbedSDK().init(lookerHost, authToken);
const sdk = await getEmbedSDK();
console.log(sdk._sessionCreated); // true, but not documented

SDK reference:
init(apiHost: string, auth?: string | LookerAuthConfig): void
Defined in src/index.ts:52

Thanks in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions