Skip to main content

# setLoginParams()

    function setLoginParams(params: Omit<LoginParams, "redirectUri"> & {
      redirectUri?: string;
    }): void;

Sets login parameters for the authentication flow. Stores parameters in the global window object for use across the application.

## Parameters​

### params​

`Omit`<`LoginParams`, `"redirectUri"`> & { `redirectUri?`: `string`; }

Login parameters

## Returns​

`void`

## Example​

    setLoginParams({
      clientId: 'my-app',
      scope: 'openid profile email'
    });