Skip to content

Files

Latest commit

76f81a0 · Oct 5, 2024

History

History

example

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Sep 20, 2019
May 31, 2020
May 31, 2020
Sep 23, 2019
Oct 9, 2022
May 31, 2020
Oct 5, 2024
Sep 24, 2019

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

Dropbox

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

npm run start:dropbox