npm.io
1.0.1 • Published 3 years ago

google-auth-scopes

Licence
ISC
Version
1.0.1
Deps
0
Size
311 kB
Vulns
0
Weekly
0

google-auth-scopes-list

Intro

Easily setup auto suggest when typed as ScopeListType

auto suggest

This repo is basically an array of google authorization scopes with a bit of typescript to give you autosuggest

It was obtained from the google documentation page here: https://developers.google.com/identity/protocols/oauth2/scopes

Basic Code Example

Install
npm install google-auth-scopes --save-dev
Import
// example.ts

import { ScopeListType } from "google-auth-scopes";

const scopes: ScopeListType = [
  "https://www.googleapis.com/auth/userinfo.email",
  "https://www.googleapis.com/auth/userinfo.profile",
];