how to avoid redirect upon new user installing the app

Hey everyone,

I have seen some apps that upon install you just straight up land in them, and not redirecting to another page, loading for a second and redirecting back to the app.

how is it possible? and how can I also do it?

Im using the react node template.

I think my auth related code is pretty default:

app.get(shopify.config.auth.path, shopify.auth.begin());
app.get(shopify.config.auth.callbackPath, shopify.auth.callback(), shopify.redirectToShopifyOrAppRoot());
app.post(shopify.config.webhooks.path, shopify.processWebhooks({ webhookHandlers: GDPRWebhookHandlers }));
app.use('/api/*', shopify.validateAuthenticatedSession());

app.use(shopify.cspHeaders());

app.use('/*', shopify.ensureInstalledOnShop(), (_req, res, _next) => {
	return res
		.status(200)
		.set('Content-Type', 'text/html')
		.send(readFileSync(join(STATIC_PATH, 'index.html')));
});