boolean
This validator will check if the authResult is an internal service by applying the following steps in sequence:
Check if authResult is an access token
Check if authResult has appId
import { crypto } from '@basaldev/blocks-backend-sdk';
import { isInternalService } from '@basaldev/blocks-backend-default-adapter';
const authResult: crypto.TokenInfo = {
type: 'access',
appId: 'appId',
};
const result = isInternalService(authResult); // true
Generated using TypeDoc
Check if the authResult is an internal service