Hi ,
I am trying to add server side cookie for my custom plugin, this is the code but
I am not able to get the server object from http_server, I get this module not found error when i try to import HttpServiceSetup
import {
PluginInitializerContext,
HttpServiceSetup,
CoreStart,
Plugin,
RequestHandlerContext,
Logger,
IRouter
} from '../../../src/core/server'
this line fails
const { createCookieSessionStorageFactory } = HttpServiceSetup['createCookieSessionStorageFactory'];
const sessionStorageFactory = await createCookieSessionStorageFactory(cookieOptions);
even this fails
//const { createCookieSessionStorageFactory } = await server.setup(config);
is there a way to get this server object
Thanks
Prathibha
Thanks
Prathibha