Skip to content

The forceAutoHeight configuration option is not included under Auth0LockConstructorOptions from @types/auth0-lock #2741

@saoirse-reid

Description

@saoirse-reid

Checklist

  • I have looked into the Readme and Examples, and have not found a suitable solution or answer.
  • I have searched the issues and have not found a suitable solution or answer.
  • I have searched the Auth0 Community forums and have not found a suitable solution or answer.
  • I agree to the terms within the Auth0 Code of Conduct.

Description

The forceAutoHeight configuration option is mentioned in examples and past merged PRs. However, it's not listed in the documentation page nor in the generated Auth0LockConstructorOptions.

This flag still behaves correctly when passed, but when using typescript results in the following build error:

Object literal may only specify known properties, and 'forceAutoHeight' does not exist in type 'Auth0LockConstructorOptions'.ts(2353)

While this issue can be worked around with manual css overrides, I would still appreciate the option to use the flag.

Reproduction

  1. Install auth-lock 14.2.4
  2. Install typescript
  3. Configure lock within a typescript file with the following config:
const lock = new Auth0Lock("{clientID}", "{domain}", {
  forceAutoHeight: true,
  container: "lock-container",
});
  1. Run npm run tsc or equivalent to typecheck the project

Additional context

No response

Lock version

14.2.4

Which browsers have you tested in?

Other

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThis points to a verified bug in the code

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions