Skip to content

Function: isPrincipalRevokedError()

function isPrincipalRevokedError(err): err is Error & { scope: RevokedScope };

Defined in: rine-core/dist/src/errors.d.ts:90

True for a revoked-principal refusal from this package or from rine-ts-sdk, whose class must extend its own AuthenticationError and so cannot be this one. Matched on the name and the scope, so one check holds across both classes and across a bundler loading two copies of this package.

Parameters

Parameter Type
err unknown

Returns

err is Error & { scope: RevokedScope }