DEV Community

Discussion on: Go fiber with session

Collapse
 
vietlib profile image
vietlib

how can i declare session middleware in app.go and using session middleware in other package (for example: user package) ? thank you

Collapse
 
mossnana profile image
Mossie Chao

In my opinion, use store method func (s *Store) Get(c *fiber.Ctx) (*Session, error)
by pass store into your other package.