@sap-cloud-sdk/connectivity
Version:
SAP Cloud SDK for JavaScript connectivity
14 lines (13 loc) • 626 B
TypeScript
import type { JwtPayload } from './jsonwebtoken-type';
/**
* @internal
*/
export declare function getIssuerSubdomain(decodedJwt: JwtPayload | undefined, isIasToken?: boolean): string | undefined;
/**
* @internal
* Replaces the first part of the hostname (subdomain) in a URL.
* @param baseUrl - The URL whose subdomain should be replaced.
* @param newSubdomain - The new subdomain to use or a falsy value to remove the subdomain.
* @returns The URL with replaced subdomain, with trailing slash removed if present.
*/
export declare function replaceSubdomain(baseUrl: string, newSubdomain: string | undefined): string;