Add helper method to auth Youtube once

This commit is contained in:
Justin Edmund 2022-12-26 09:47:48 -08:00
parent 00288da476
commit 49ff10ab98

6
utils/youtube.tsx Normal file
View file

@ -0,0 +1,6 @@
import { YoutubeAPIClient } from 'youtube-api-v3-wrapper'
export const youtube = new YoutubeAPIClient(
'key',
process.env.NEXT_PUBLIC_YOUTUBE_API_KEY
)