@sap-cloud-sdk/connectivity
Version:
SAP Cloud SDK for JavaScript connectivity
10 lines (9 loc) • 395 B
TypeScript
import type { JwtPayload } from './jsonwebtoken-type';
/**
* Compare two decoded JWTs based on their `tenantId`s.
* @param userTokenPayload - User JWT payload.
* @param providerTokenPayload - Provider JWT payload.
* @returns Whether the tenant is identical.
* @internal
*/
export declare function isIdenticalTenant(userTokenPayload: JwtPayload, providerTokenPayload: JwtPayload): boolean;