add origin param to script

This commit is contained in:
2025-12-16 03:02:13 -08:00
parent d1abbca707
commit d56a11c482
+3 -2
View File
@@ -3,9 +3,10 @@ import { ApiClient } from '@twurple/api'
import { EventSubWsListener } from '@twurple/eventsub-ws'
const client_id = 'ib2n7v7mur7ab2mcxv7rjju2ctsyoi'
const origin = 'https://ebs.sugoidogo.com'
const authProvider = new SugoiAuthProvider(client_id)
const webStorage = new WebStorage(authProvider)
const authProvider = new SugoiAuthProvider(client_id, origin)
const webStorage = new WebStorage(authProvider, undefined, origin)
const apiClient = new ApiClient({ authProvider })
const eventSub = new EventSubWsListener({ apiClient })