Skip to content

Commit

Permalink
fix: Fix local storage instantiating (#269)
Browse files Browse the repository at this point in the history
Fix LocalStorage instantiating
  • Loading branch information
Andrew Nikitin authored Jun 24, 2023
1 parent a4d9942 commit 6ec820f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ class App {
}))

this.express.use(cookieParser())
this.express.use(session({ secret: process.env.COOKIE_SECRET, cookie: { maxAge: 14 * 24 * 60 * 60 } }))
if (process.env.ENABLE_AUTHENTICATION === 'true') {
this.express.use(session({secret: process.env.COOKIE_SECRET, cookie: { maxAge: 14 * 24 * 60 * 60 }}))
}
this.express.use(handleAuthRoutes(configLogToExpress))
this.express.use(withLogto(configLogToExpress))
this.express.use(express.text())
Expand Down
1 change: 0 additions & 1 deletion src/services/identity/local.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ const {
export class LocalIdentity implements IIdentity {
agent?: VeramoAgent
privateStore?: AbstractPrivateKeyStore
public static instance = new LocalIdentity()

constructor() {
this.agent = this.initAgent()
Expand Down

0 comments on commit 6ec820f

Please sign in to comment.