KEYCLOAK-17684: fix TypeScript definition of createAccountUrl parameter (#7917)

This commit is contained in:
Manuel Rauber 2021-04-20 20:19:15 +02:00 committed by GitHub
parent ada7f37430
commit 30e735dd25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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