Skip to content

This is a basic library to generate client credentials (bearer tokens) for Discord Applications using OAuth2.

License

Notifications You must be signed in to change notification settings

vaught-dawson/discord-oauth2-clientcredentials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

About

This is a basic library to generate client credentials (bearer tokens) for Discord using OAuth2.

Installation

Run npm install on the command line or terminal.
npm install discord-oauth2-clientcredentials

Usage

Generate client credentials JSON object.
const { generateClientCredentials } = require('discord-oauth2-clientcredentials');

main();
async function main() {
    var client_credentials = await generateClientCredentials({ 
        client_id: '', 
        client_secret: '',
        scope: 'identify'  
    });
}

About the Author

This package came into existence after I tried to get client credentials for the 'application.commands.update' permission in Discord for two consecutive days.

Want to show some support? Buy me a coffee!

About

This is a basic library to generate client credentials (bearer tokens) for Discord Applications using OAuth2.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published