Skip to content
This repository was archived by the owner on Nov 15, 2025. It is now read-only.

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

README.md

Examples

Before running any example, please set the following environment variables:

export CLIENT_ID="your client id"
export CLIENT_SECRET="your client secret"

The following authorization services are provided as examples to get a better idea of how to use this library on some of the most common use cases:

Microsoft

Microsoft requires the credentials information during the token exchange to be sent at the request body. It also requires to send the redirect_uri argument. See the ./microsoft.js module as a reference implementation or execute the example with:

npm run start:microsoft

Github

See the ./github.js module as a reference implementation or execute the example with:

npm run start:github