For both angular and vue under https://supertokens.com/docs/quickstart/frontend-setup#2-initialize-the-sdk, the prebuilt UI code says to do this:
script.onload = () => {
(window as any).supertokensUIInit({
...
Something must have changed in your UI code because there are 2 params for that function and it needs to look like this or else you get a very confusing error that is not documented anywhere as far as I can tell.
script.onload = () => {
(window as any).supertokensUIInit('supertokensui', {
...
For the searchers, if you are getting this error:
Cannot read properties of undefined (reading 'cookieHandler')
Then the above is your issue.
For both angular and vue under https://supertokens.com/docs/quickstart/frontend-setup#2-initialize-the-sdk, the prebuilt UI code says to do this:
Something must have changed in your UI code because there are 2 params for that function and it needs to look like this or else you get a very confusing error that is not documented anywhere as far as I can tell.
For the searchers, if you are getting this error:
Cannot read properties of undefined (reading 'cookieHandler')Then the above is your issue.