KEYCLOAK-17684: fix TypeScript definition of createAccountUrl parameter (#7917)
This commit is contained in:
parent
ada7f37430
commit
30e735dd25
1 changed files with 9 additions and 1 deletions
|
@ -248,6 +248,13 @@ declare namespace Keycloak {
|
|||
}
|
||||
|
||||
interface KeycloakRegisterOptions extends Omit<KeycloakLoginOptions, 'action'> { }
|
||||
|
||||
interface KeycloakAccountOptions {
|
||||
/**
|
||||
* Specifies the uri to redirect to when redirecting back to the application.
|
||||
*/
|
||||
redirectUri?: string;
|
||||
}
|
||||
|
||||
type KeycloakPromiseCallback<T> = (result: T) => void;
|
||||
|
||||
|
@ -529,8 +536,9 @@ declare namespace Keycloak {
|
|||
|
||||
/**
|
||||
* Returns the URL to the Account Management Console.
|
||||
* @param options The options used for creating the account URL.
|
||||
*/
|
||||
createAccountUrl(): string;
|
||||
createAccountUrl(options?: KeycloakAccountOptions): string;
|
||||
|
||||
/**
|
||||
* Returns true if the token has less than `minValidity` seconds left before
|
||||
|
|
Loading…
Reference in a new issue