File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ export const anonymousAuth = defineRpcFunction({
4040 }
4141
4242 // Auto-approve if authToken matches a configured auth token (session-only, not persisted)
43- const tokens = ( context . viteConfig . devtools ?. config as any ) ?. clientAuthTokens as string [ ] ?? [ ]
43+ const tokens = context . viteConfig . devtools ?. config ?. clientAuthTokens ?? [ ]
4444 if ( tokens . includes ( query . authToken ) ) {
4545 session . meta . clientAuthToken = query . authToken
4646 session . meta . isTrusted = true
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ export async function createWsServer(options: CreateWsServerOptions) {
5454 meta . isTrusted = true
5555 meta . clientAuthToken = authToken
5656 }
57- else if ( authToken && ( ( context . viteConfig . devtools ?. config as any ) ?. clientAuthTokens ?? [ ] ) . includes ( authToken ) ) {
57+ else if ( authToken && ( context . viteConfig . devtools ?. config ?. clientAuthTokens ?? [ ] ) . includes ( authToken ) ) {
5858 meta . isTrusted = true
5959 meta . clientAuthToken = authToken
6060 }
You can’t perform that action at this time.
0 commit comments