-
-
Save simistern/568323355aa4b9b7191e44f3ddab9c1f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Client, oauth2 } from 'ketting'; | |
const client = new Client('api.example.org'); | |
client.use(oauth2({ | |
grantType: 'password', | |
clientId: 'fooClient', | |
clientSecret: 'barSecret', | |
tokenEndpointUri: 'https://api.example.org/oauth/token', | |
scopes: ['test'] | |
userName: 'fooOwner', | |
password: 'barPassword' | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment