Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updates with-supertokens example: Fixes init race condition (#32706)
Updates with-supertokens example to fix a race condition for initialising the supertokens-node SDK. Earlier we used to do it in _app.js in an async manner, so if `getServerSideProps` is called before the `supertokens.init` is called, the page load would fail. Now, we call `supertokens.init` (for the node SDK) in the `getServerSideProps` function itself. Co-authored-by: kant01ne <5072452+kant01ne@users.noreply.github.com> Co-authored-by: Bhumil Sarvaiya <21988812+bhumilsarvaiya@users.noreply.github.com> Co-authored-by: Joel Coutinho <6310783+jscyo@users.noreply.github.com>
- Loading branch information