@types/auth0-lock - adds autoParseHash to Auth0LockAuthOptions (#34808)

* adds autoParseHash to Auth0LockAuthOptions as supported by current docs. See https://github.com/auth0/lock#authentication-options

* add autoParseHash to tests to prevent regression.
This commit is contained in:
Bill Glesias 2019-04-18 19:08:33 -04:00 committed by Armando Aguirre
parent 4e761b8a06
commit c3030b9212
2 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,7 @@ const showOptions : Auth0LockShowOptions = {
allowSignUp: true,
allowForgotPassword: false,
auth: {
autoParseHash: true,
params: { state: "foo" },
redirect: true,
redirectUrl: "some url",
@ -111,6 +112,7 @@ new Auth0Lock(CLIENT_ID, DOMAIN, themeOptions);
const authOptions : Auth0LockConstructorOptions = {
auth: {
autoParseHash: true,
params: { state: "foo" },
redirect: true,
redirectUrl: "some url",

View File

@ -96,6 +96,7 @@ interface Auth0LockAuthParamsOptions {
}
interface Auth0LockAuthOptions {
autoParseHash?: boolean;
params?: Auth0LockAuthParamsOptions;
redirect?: boolean;
redirectUrl?: string;