How to use Google OAuth with Deno js?

Viewed 1020

Is there some libraries or modules for Google OAuth in Deno.js? I am trying to impelemnt google login on my web application and use this google account for uploading youtube videos in deno.js.

I am grateful for any help!

3 Answers

Have a look at youtube-deno. I haven't used it myself, but it seems like it provides a good interface for communicating with the Youtube API with deno.


Here's an example from the readme:

// A simple example to call the search_list() function and log the response json.
import { YouTube } from "https://x.nest.land/youtube-deno@0.0.6/mod.ts";

let obj = new YouTube("your-api-key-here", false);

obj.search_list({part: "snippet", q: "the coding train"}).then(function(response){
 console.log(response);
});
Related