Skip to content
This repository was archived by the owner on Jul 14, 2022. It is now read-only.
This repository was archived by the owner on Jul 14, 2022. It is now read-only.

How to fix secret option required for sessions Error on windows #122

@amarg26

Description

@amarg26

I am implementing a Redis memory strategy for my Shopify app to deploy it. Strategy MemoryStrategy is working fine without any error. When It comes to RedisStrategy When I start my localhost along with ngrok.exe and redis-server.exe for windows, I get the error on my Shopify-install url. error
warning:
express-session deprecated req.secret; provide secret option server\index.js:72:2 Warning: Failed option type: The option apiKeyis marked as required inShopifyExpress, but its value is undefined. Warning: Failed option type: The option hostis marked as required inShopifyExpress, but its value is undefined. Warning: Failed option type: The option secretis marked as required inShopifyExpress, but its value is undefined.

.env file has all keys correct.

Here is my index.js
index.js

What is getting wrong at index.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions