Skip to content

Instantly share code, notes, and snippets.

@Souvikns
Created January 18, 2023 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Souvikns/17ea10e19c5a84341565710e5ef676db to your computer and use it in GitHub Desktop.
Save Souvikns/17ea10e19c5a84341565710e5ef676db to your computer and use it in GitHub Desktop.
export default async function () {
return {
authentication: (servername: string, channelname: string, parsedAsyncAPISpec: AsyncAPI) {
if (servername === 'ws-client') {
return {token: process.env.TOKEN}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment