Add helper method to auth Youtube once
This commit is contained in:
parent
00288da476
commit
49ff10ab98
1 changed files with 6 additions and 0 deletions
6
utils/youtube.tsx
Normal file
6
utils/youtube.tsx
Normal 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
|
||||
)
|
||||
Loading…
Reference in a new issue