From 49ff10ab981cb01d0198c22904150d3877806071 Mon Sep 17 00:00:00 2001 From: Justin Edmund Date: Mon, 26 Dec 2022 09:47:48 -0800 Subject: [PATCH] Add helper method to auth Youtube once --- utils/youtube.tsx | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 utils/youtube.tsx diff --git a/utils/youtube.tsx b/utils/youtube.tsx new file mode 100644 index 00000000..b3fdff5f --- /dev/null +++ b/utils/youtube.tsx @@ -0,0 +1,6 @@ +import { YoutubeAPIClient } from 'youtube-api-v3-wrapper' + +export const youtube = new YoutubeAPIClient( + 'key', + process.env.NEXT_PUBLIC_YOUTUBE_API_KEY +)