Skip to content

Jonathan-Dobson/google-auth-scopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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",
];