Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
private createRequestContext(languageCode: LanguageCode): RequestContext {
return new RequestContext({
languageCode,
apiType: 'admin',
session: {} as any,
isAuthorized: false,
authorizedAsOwnerOnly: true,
channel: new Channel(),
});
}
}