rp
11/14/2021, 6:45 PMrp
11/14/2021, 6:45 PMrp
11/14/2021, 6:56 PMrp
11/14/2021, 6:57 PMrp
11/14/2021, 6:59 PMresponse.createdNewUser === true
)
To insert the custom fields in the session, you can add them when calling the createNewSession
function.rp
11/14/2021, 7:09 PM"axios"
and "qs"
mpicciolli
11/14/2021, 7:10 PMmpicciolli
11/14/2021, 11:03 PMrp
11/15/2021, 2:47 AMtdfirth
11/16/2021, 7:59 PMtdfirth
11/16/2021, 7:59 PMtdfirth
11/16/2021, 8:00 PMtdfirth
11/16/2021, 8:01 PMtdfirth
11/16/2021, 8:01 PMTypeError: cd.default.getInstanceOrThrow is not a function
tdfirth
11/16/2021, 8:01 PMtdfirth
11/16/2021, 8:01 PMtdfirth
11/16/2021, 8:01 PMtdfirth
11/16/2021, 8:02 PMnpm build && npm serve
tdfirth
11/16/2021, 8:02 PMnpm dev
is fineporcellus
11/16/2021, 8:03 PMtdfirth
11/16/2021, 8:03 PMtdfirth
11/16/2021, 8:03 PMtdfirth
11/16/2021, 8:04 PMimport * as reactRouterDom from "react-router-dom";
...
{getSuperTokensRoutesForReactRouterDom(reactRouterDom)}
tdfirth
11/16/2021, 8:05 PMrequire("react-router-dom")
in the docs but that won't work with vite as I understand it (though my js knowledge is .... mediocre)porcellus
11/16/2021, 8:56 PMporcellus
11/16/2021, 9:00 PMreactRouterDom
it tries to call cd.default.getInstanceOrThrow
which is undefined, while cd.default.default.getInstanceOrThrow
is defined (and points to the right thing)porcellus
11/16/2021, 9:02 PMdefault.default
part, because it looks like it was wrapped twice for some reason. I tried a quick search to see if it was a bug in the bundler, but nothing came up.porcellus
11/16/2021, 9:21 PMporcellus
11/16/2021, 9:40 PMtdfirth
11/17/2021, 8:18 AM