@@ -86,6 +86,13 @@ declare namespace OpenEO {
8686 * @param {?string } token
8787 */
8888 setToken ( token : string | null ) : void ;
89+ /**
90+ * Tries to resume an existing session.
91+ *
92+ * @param {...any } args
93+ * @returns {boolean } `true` if the session could be resumed, `false` otherwise
94+ */
95+ resume ( ...args : any [ ] ) : boolean ;
8996 /**
9097 * Abstract method that extending classes implement the login process with.
9198 *
@@ -569,6 +576,15 @@ declare namespace OpenEO {
569576 * @type {Array.<OidcClient> }
570577 */
571578 defaultClients : Array < OidcClient > ;
579+ /**
580+ * Additional parameters to include in authorization requests.
581+ *
582+ * As defined by the API, these parameters MUST be included when
583+ * requesting the authorization endpoint.
584+ *
585+ * @type {object.<string, *> }
586+ */
587+ authorizationParameters : Record < string , any > ;
572588 /**
573589 * The detected default Client.
574590 *
@@ -608,7 +624,16 @@ declare namespace OpenEO {
608624 * @see https://github.com/IdentityModel/oidc-client-js/wiki#other-optional-settings
609625 * @see {OidcProvider#refreshTokenScope}
610626 */
611- login ( options ?: Record < string , any > , requestRefreshToken ?: boolean ) : Promise < void > ;
627+ login ( options ?: object < string , any > , requestRefreshToken ?: boolean ) : Promise < void > ;
628+ /**
629+ * Restores a previously established OIDC session from storage.
630+ *
631+ * @async
632+ * @param {object.<string, *> } [options={}] - Additional options passed to the OIDC UserManager.
633+ * @returns {Promise<boolean> } `true` if the session could be resumed, `false` otherwise.
634+ * @see https://github.com/IdentityModel/oidc-client-js/wiki#usermanager
635+ */
636+ resume ( options ?: object < string , any > ) : Promise < boolean > ;
612637 /**
613638 * Returns the options for the OIDC client library.
614639 *
0 commit comments