We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ccc0463 commit e5c32e2Copy full SHA for e5c32e2
1 file changed
packages/astro/src/internal/create-clerk-instance.ts
@@ -108,7 +108,7 @@ function updateClerkOptions<TUi extends Ui = Ui>(options: AstroClerkUpdateOption
108
async function getClerkJsEntryChunk<TUi extends Ui = Ui>(options?: AstroClerkCreateInstanceParams<TUi>): Promise<void> {
109
const jsProp = options as { js?: { ClerkJS?: BrowserClerkConstructor } } | undefined;
110
if (jsProp?.js?.ClerkJS) {
111
- window.Clerk = new jsProp.js.ClerkJS(options!.publishableKey, {
+ window.Clerk = new jsProp.js.ClerkJS(options?.publishableKey as string, {
112
proxyUrl: options?.proxyUrl as string,
113
domain: options?.domain as string,
114
}) as any;
0 commit comments