mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
@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:
parent
4e761b8a06
commit
c3030b9212
@ -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",
|
||||
|
||||
1
types/auth0-lock/index.d.ts
vendored
1
types/auth0-lock/index.d.ts
vendored
@ -96,6 +96,7 @@ interface Auth0LockAuthParamsOptions {
|
||||
}
|
||||
|
||||
interface Auth0LockAuthOptions {
|
||||
autoParseHash?: boolean;
|
||||
params?: Auth0LockAuthParamsOptions;
|
||||
redirect?: boolean;
|
||||
redirectUrl?: string;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user