diff --git a/adapters/oidc/js/src/main/resources/keycloak.d.ts b/adapters/oidc/js/src/main/resources/keycloak.d.ts index 3f26cb4d68..9fb84e9b3b 100644 --- a/adapters/oidc/js/src/main/resources/keycloak.d.ts +++ b/adapters/oidc/js/src/main/resources/keycloak.d.ts @@ -34,6 +34,7 @@ declare namespace Keycloak { type KeycloakResponseMode = 'query'|'fragment'; type KeycloakResponseType = 'code'|'id_token token'|'code id_token token'; type KeycloakFlow = 'standard'|'implicit'|'hybrid'; + type KeycloakPromiseType = 'native' interface KeycloakInitOptions { /** @@ -109,6 +110,13 @@ declare namespace Keycloak { * @default standard */ flow?: KeycloakFlow; + + /** + * Set the promise type. If set to `'native'` all methods returning a promise + * will return a native JavaScript promise. If not set will return + * Keycloak specific promise objects. + */ + promiseType?: KeycloakPromiseType; } interface KeycloakLoginOptions {