We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
low priority since it works right now, but this will be good for the future
The text was updated successfully, but these errors were encountered:
Hi, let me a try
Sorry, something went wrong.
Absolutely!
interface ChatUserLinkResolverType { Chat: { user: ( chat: Chat, _args: any, { user_id, secret, refresh_token }: GraphQLModules.Context ) => Promise<HelixUser | null> } } export const ChatUserLinkResolvers: ChatUserLinkResolverType = { Chat: { user: async ( chat: Chat, _args: any, { user_id, secret, refresh_token }: GraphQLModules.Context ) => { const authProvider = await RefreshToken(user_id, secret, refresh_token) const twitchClient = new ApiClient({ authProvider, preAuth: true }) return twitchClient.helix.users.getUserByName(chat.displayName) }, }, }
darkusss
No branches or pull requests
low priority since it works right now, but this will be good for the future
The text was updated successfully, but these errors were encountered: