Skip to content

Commit

Permalink
[#95] added missing .authStore in the nextjs ssr example
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoZaffalon authored Dec 2, 2022
1 parent 4e540c8 commit eaec873
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit eaec873

Please sign in to comment.