@salte-auth/discord
TypeScript icon, indicating that this package has built-in type declarations

3.1.0 • Public • Published

A Salte Auth provider for authenticating with Discord!

DocsDemo

NPM Version NPM Downloads CI Build Coveralls

semantic-release

Install

$ npm install @salte-auth/discord

Usage

import { SalteAuth } from '@salte-auth/salte-auth';
import { Discord } from '@salte-auth/discord';
import { Redirect } from '@salte-auth/redirect';

/* 
 * Feel free to try out Salte Auth with this configuration!
 * 
 * It should work with the following domains:
 * - glitch.com
 * - localhost:8081
 */
const auth = new SalteAuth({
  providers: [
    new Discord({
      clientID: '705261926048989185',
      responseType: 'code'
    })
  ],

  handlers: [
    new Redirect({
      default: true
    })
  ]
});

auth.login('discord');

Package Sidebar

Install

npm i @salte-auth/discord

Weekly Downloads

0

Version

3.1.0

License

MIT

Unpacked Size

8.9 kB

Total Files

16

Last publish

Collaborators

  • cecilia-sanare
  • davewoodward
  • salte-bot