From 5 to 6
@stytch/vanilla-js is no longer needed for @stytch/react
and @stytch/nextjs.
See their respective upgrade guides for how how to update to the new version.
Compatibility
Step by step guide
Update to use custom element
The library now exports a custom element, and StytchUIClient is deprecated in favor of StytchClient.
Instead of calling
stytch.mount(), register the custom element and call render() on the element to pass in the client and config.Update deprecated imports
The following are deprecated and should be updated.
createStytchUIClient→createStytchClientcreateStytchHeadlessClient→createStytchClientStytchUIClient→StytchClientStytchHeadlessClient→StytchClient
