From eaec8733e29b2effcf60713ff3f59e4505d498b2 Mon Sep 17 00:00:00 2001 From: Riccardo Zaffalon Date: Fri, 2 Dec 2022 17:37:23 +0100 Subject: [PATCH] [#95] added missing `.authStore` in the nextjs ssr example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 8cc2e97..6281224 100644 --- a/README.md +++ b/README.md @@ -510,7 +510,7 @@ async function initPocketBase(req, res) { const pb = new PocketBase('http://127.0.0.1:8090'); // load the store data from the request cookie string - pb.loadFromCookie(req?.headers?.cookie || ''); + pb.authStore.loadFromCookie(req?.headers?.cookie || ''); // send back the default 'pb_auth' cookie to the client with the latest store state pb.authStore.onChange(() => {