Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cloudflare-workers-and-google-oauth

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudflare-workers-and-google-oauth

Enables easier interfacing with GCS OAuth API for use in Cloudflare Workers

  • 1.0.8
  • npm
  • Socket score

Version published
Weekly downloads
1.5K
decreased by-31.5%
Maintainers
1
Weekly downloads
 
Created
Source

Google OAuth & Cloudflare Workers

Background

This is a simple JS module used to facilitate OAuth2 flow from within a Cloudflare Worker. This module isn't specific to Cloudflare, but it is compatible within isolates and doesn't rely on NodeJS.

Usage

Install: npm i cloudflare-workers-and-google-oauth

// import the lib
import GoogleAuth, { GoogleKey } from 'cloudflare-workers-and-google-oauth'

// ensure you have global access to the environment variable representing the PEM-encoded secret 
// you downloaded from Google Cloud dashboard for your service account
export interface Env {
	GCP_SERVICE_ACCOUNT: string;
}

...


Keywords

FAQs

Package last updated on 23 Oct 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc