diff --git a/packages/core-app-api/report.api.md b/packages/core-app-api/report.api.md index 3d2c44a148..0cec898bfd 100644 --- a/packages/core-app-api/report.api.md +++ b/packages/core-app-api/report.api.md @@ -551,6 +551,9 @@ export class OAuth2 export type OAuth2CreateOptions = OAuthApiCreateOptions & { scopeTransform?: (scopes: string[]) => string[]; popupOptions?: PopupOptions; + authConnectorFactory?: ( + opts: OAuth2CreateOptions, + ) => AuthConnector; }; // @public diff --git a/packages/core-app-api/src/lib/AuthConnector/types.ts b/packages/core-app-api/src/lib/AuthConnector/types.ts index 3c01bb254f..1ba96c6cb8 100644 --- a/packages/core-app-api/src/lib/AuthConnector/types.ts +++ b/packages/core-app-api/src/lib/AuthConnector/types.ts @@ -14,6 +14,9 @@ * limitations under the License. */ +/** + * @public + */ export type CreateSessionOptions = { scopes: Set; instantPopup?: boolean; @@ -22,6 +25,8 @@ export type CreateSessionOptions = { /** * An AuthConnector is responsible for realizing auth session actions * by for example communicating with a backend or interacting with the user. + * + * @public */ export type AuthConnector = { createSession(options: CreateSessionOptions): Promise; diff --git a/packages/core-app-api/src/lib/loginPopup.ts b/packages/core-app-api/src/lib/loginPopup.ts index b6c14d60c9..9ab75501b0 100644 --- a/packages/core-app-api/src/lib/loginPopup.ts +++ b/packages/core-app-api/src/lib/loginPopup.ts @@ -16,6 +16,8 @@ /** * Options used to open a login popup. + * + * @public */ export type LoginPopupOptions = { /** @@ -65,6 +67,8 @@ type AuthResult = * to the app window. The message posted to the app must match the AuthResult type. * * The returned promise resolves to the response of the message that was posted from the auth popup. + * + * @public */ export function showLoginPopup(options: LoginPopupOptions): Promise { return new Promise((resolve, reject) => {