Could not find an OAuth cookie for shop url

Im writing an app with nestjs and Im using nestjs-shopify librray the point Im having the problem is when the user wait for some times and click on install i face with the error of Could not find an OAuth cookie for shop url {Name of store} and it will not installs but when the user click on install immediately it works correctly. is there any way to expand the expiration time so users have more times to click on install button?
as a setting im passing this data to shopify auth



export const authSetting = (
  basePath: string,
): ShopifyAuthModuleAsyncOptions => ({
  useFactory: (afterAuthHandler: AppShopifyAuthHandler) => ({
    useGlobalPrefix: true,
    basePath,
    afterAuthHandler,
  }),
  imports: [AppShopifyAuthModule],
  inject: [AppShopifyAuthHandler],
});

Hi Shahram,

Is this the library you’re using: GitHub - nestjs-shopify/nestjs-shopify: Build Shopify apps on NestJS

If so you may need to ask in the repo, this library isn’t maintained by Shopify so it will be difficult for us to determine how authentication is intended to work with it.