Describe the bug
Any props set within custom _app component are lost when exporting withPasswordProtect()
To Reproduce
Steps to reproduce the behaviour:
- Setup a custom _app file with getInitialProps setting a value.
- Export using withPasswordProtect()
- Login successfully
- Console log _app props on page and they're undefined
- Leave everything as is except remove withPasswordProtect() and your props will re-appear on the page
Expected behavior
Props from _app shouldn't be overwritten or lost.
Stack
Node fermium, Next 12, next-password-protect 1.7
Describe the bug
Any props set within custom _app component are lost when exporting withPasswordProtect()
To Reproduce
Steps to reproduce the behaviour:
Expected behavior
Props from _app shouldn't be overwritten or lost.
Stack
Node fermium, Next 12, next-password-protect 1.7