import { StytchClient, StytchIdentityProvider } from '@stytch/vanilla-js';
const stytch = new StytchClient('public-token-test-be835f9a-ac37-44cf-817d-f58ac2b3ae3d');
const trustedAuthTokenParams = {
trustedAuthToken: 'eyJ...',
tokenProfileID: 'token-profile-id',
};
const presentation = {
theme: { 'font-family': 'Arial' },
};
customElements.define('stytch-identity-provider', StytchIdentityProvider);
// In HTML: <stytch-identity-provider id="stytch-identity-provider" />
document.getElementById('stytch-identity-provider').render({
client: stytch,
presentation,
trustedAuthTokenParams,
});