# Type Alias BimApiOptions

BimApiOptions: (
| {
isPSAuthenticationRedirectEnabled?: false;
session?: TwinfinityApiOptions["session"];
}
| { isPSAuthenticationRedirectEnabled: true }
) & { applicationName?: string; wasmLoaderOptions?: MeshStoreLoaderOptions }

Creation options for BimApi

#### Type declaration

- {
  isPSAuthenticationRedirectEnabled?: false;
  session?: TwinfinityApiOptions["session"];
  }

  - ##### `Optional` `Readonly` isPSAuthenticationRedirectEnabled?: false

    If `true` then BimApi will automatically redirect the user to the PS login page if the user is not already authenticated.

  - ##### `Optional` session?: TwinfinityApiOptions["session"]

- { isPSAuthenticationRedirectEnabled: true }

  - ##### `Readonly` isPSAuthenticationRedirectEnabled: true

    If `true` then BimApi will automatically redirect the user to the PS login page if the user is not already authenticated.

- ##### `Optional` `Readonly` applicationName?: string

  set this to a unique name for the appliation. Will allow log filtering on application name.

- ##### `Optional` `Readonly` wasmLoaderOptions?: MeshStoreLoaderOptions

  Options for WASM-based geometry deflation. If provided, enables WASM loading.