UNPKG

@openpass/openpass-js-sdk

Version:
25 lines (24 loc) 975 B
import { SignInButtonOptions } from "../types"; import { OpenPassApiClient } from "./api/openPassApiClient"; import PopupAuth from "./popup"; import RedirectAuth from "./redirect"; export declare const SIGN_IN_BUTTON_STYLESHEET_ID = "openpass-sign-in-button-stylesheet"; /** * Handles rendering and functionality of the automatically rendered sign in button. */ export default class SignInButton { private readonly redirectAuth; private readonly popupAuth; private readonly apiClient; /** * Initializes a new instance of the SignInButton class. * @param redirectAuth - The redirect authentication object. * @param popupAuth - The popup authentication object. * @param apiClient - The OpenPass API Client client object. */ constructor(redirectAuth: RedirectAuth, popupAuth: PopupAuth, apiClient: OpenPassApiClient); /** * Renders the sign in button. */ renderSignInButton(options: SignInButtonOptions): void; }