@espcustomss/oauth
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

📖 Introduction Esp Customs OAuth

Discord OAuth actualizando todas las dependencias, totalmente funcional!! Maxima compatibilidad con TypeScript y errores corregidos

Ejemplos completos: Demo, Esp Customs

1 - 💻 Instalación

npm i @espcustomss/oauth

NPM

2 - Modo de uso

import { Client } from '@espcustomss/oauth';

export const auth = new Client({
  id: '<your_bot_id>',
  secret: '<your_bot_secret>',
  redirectURI: 'http://localhost:3000/auth',
  scopes: ['identify', 'guilds', 'guilds.join']
});
import { auth } from ...

const key = await auth.getAccess('<code_from_discord>');
const user = await auth.getUser(key); // { id: '...', username: '! BLD Gobi', ... }
const guilds = await auth.getGuilds(key); // Collection<{ id: '...', name: 'ESP CUSTOMS', ... }>

Readme

Keywords

Package Sidebar

Install

npm i @espcustomss/oauth

Weekly Downloads

10

Version

1.1.4

License

MIT

Unpacked Size

763 kB

Total Files

60

Last publish

Collaborators

  • srgobi