@openpass/openpass-js-sdk
Version:
OpenPass SSO JavaScript SDK
8 lines (7 loc) • 724 B
TypeScript
import { AuthRedirectUrlParams, AuthSession, SignInSource } from "./internalTypes";
import { CustomQueryParameter } from "../types";
export declare const parseAuthRedirectUrlParams: (queryString: string) => AuthRedirectUrlParams;
export declare const urlHasStateAndCodeOrErrorParameters: (urlParams: AuthRedirectUrlParams) => boolean;
export declare const redirectUrlMatchesCurrentUrl: (currentPageUrl: string, redirectUrl: string) => boolean;
export declare const buildAuthorizeUrl: (baseUrl: string, authorizeEndpoint: string, session: AuthSession, source: SignInSource, customQueryParams?: Array<CustomQueryParameter>) => string;
export declare const matchesEventOrigin: (eventOrigin: string, origin: string) => boolean;