Skip to content

supertokensUIInit doc is wrong #1013

Description

@danjohnso

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions