DEV Community

loading...

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
Permpoon Chaowanaphunphon Author

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