File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
packages/nuxt/src/runtime Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,15 @@ import { clerkPlugin } from '@clerk/vue';
44import { setErrorThrowerOptions } from '@clerk/vue/internal' ;
55import { defineNuxtPlugin , navigateTo , useRuntimeConfig , useState } from 'nuxt/app' ;
66
7+ import type { ClerkKeylessContext } from './server/types' ;
8+
79setErrorThrowerOptions ( { packageName : PACKAGE_NAME } ) ;
810setClerkJSLoadingErrorPackageName ( PACKAGE_NAME ) ;
911
1012export default defineNuxtPlugin ( nuxtApp => {
1113 // SSR-friendly shared state
1214 const initialState = useState < InitialState | undefined > ( 'clerk-initial-state' , ( ) => undefined ) ;
13- const keylessContext = useState < { claimUrl ?: string ; apiKeysUrl ?: string } | undefined > (
14- 'clerk-keyless-context' ,
15- ( ) => undefined ,
16- ) ;
15+ const keylessContext = useState < ClerkKeylessContext | undefined > ( 'clerk-keyless-context' , ( ) => undefined ) ;
1716
1817 if ( import . meta. server ) {
1918 // Save the initial state from server and pass it to the plugin
You can’t perform that action at this time.
0 commit comments