1.1.4 • Published 4 months ago

@espcustomss/oauth v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

📖 Introduction Esp Customs OAuth

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

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', ... }>
1.1.4

4 months ago

1.1.3

4 months ago

1.1.2

4 months ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

2.0.0

1 year ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.3

2 years ago

1.0.0

2 years ago

1.0.10

2 years ago

1.0.9

3 years ago

1.0.8

3 years ago