Hierarchy

  • Openfort

Constructors

Properties

storage: Storage
iAuthManager: null | AuthManager = null
openfortInternal: OpenfortInternal
initPromise: Promise<void>
asyncInitPromise: null | Promise<void> = null
authInstance?: AuthApi
embeddedWalletInstance?: EmbeddedWalletApi
userInstance?: UserApi
proxyInstance?: ProxyApi
configuration: SDKConfiguration

Accessors

Methods

  • Wait for SDK initialization to complete. This triggers async initialization which includes storage access, so it should only be called in browser environments.

    Returns Promise<void>

    Promise that resolves when initialization is complete

  • Get the current access token

    Returns Promise<null | string>

    Access token or null

  • Validates and refreshes the access token if needed.

    Parameters

    • Optional forceRefresh: boolean

    Returns Promise<void>

  • Ensures async initialization is complete. This is called lazily when storage is actually needed, not during construction.

    Returns Promise<void>

    Promise that resolves when async initialization is complete

    Throws

    If initialization fails

  • Ensures the SDK is initialized. This method guarantees that initialization happens exactly once, even if called concurrently from multiple methods.

    Returns Promise<void>

    Promise that resolves when initialization is complete

    Throws

    If initialization fails

Generated using TypeDoc