Skip to main content

LoginIDConfigValidator

@loginid/websdk3Docs


@loginid/websdk3 / Internal Modules / LoginIDConfigValidator

Class: LoginIDConfigValidator

Constructors

new LoginIDConfigValidator()

new LoginIDConfigValidator(config): LoginIDConfigValidator

Constructs a new instance of the LoginIDConfigValidator class, initializing with the provided configuration.

Parameters

config: LoginIDConfig

Configuration object for LoginID API, including the base URL and optional app ID.

Returns

LoginIDConfigValidator

Methods

getAppId()

getAppId(): string

Retrieves the application ID from the configuration or extracts it from the base URL if not provided.

Returns

string

The application ID.

Throws

If the app ID is not found in the configuration or the base URL, throws an error.