From 6812fc40561c75a214ac1ca608cecf141f3eb44c Mon Sep 17 00:00:00 2001 From: Jason McNeil Date: Sun, 8 Sep 2024 15:53:18 -0300 Subject: [PATCH] docs: Update session middleware docs --- docs/middleware/session.md | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/docs/middleware/session.md b/docs/middleware/session.md index 488be3a48c..5439ef55b5 100644 --- a/docs/middleware/session.md +++ b/docs/middleware/session.md @@ -36,8 +36,7 @@ We recommend using the `Middleware` handler for better integration with other mi ## Migration Guide ### v2 to v3 - -- The `New` function signature has changed in v3. It now returns a `*Middleware` instead of a `*Store`. You can access the store using the `Store` method on the `*Middleware` or by using the `NewWithStore` function. +- In version 3, the `New` function signature has been updated. It now returns a Fiber middleware handler instead of a `*Store`. To access the store, you can use the `Store` method on the `*Middleware` (obtained by calling `session.FromContext(c)` in a handler where the middleware is applied) or utilize the `NewWithStore` function. While it's still possible to work with the `*Store` directly, we recommend using the `Middleware` handler for better integration with other Fiber middlewares.