UNPKG

jaid-core-twitch-auth

Version:

jaid-core plugin for TwitchTV based logins.

88 lines (54 loc) 3.82 kB
# jaid-core-twitch-auth <a href="https://actions-badge.atrox.dev/Jaid/jaid-core-twitch-auth/goto"><img src="https://img.shields.io/endpoint.svg?style=flat-square&url=https%3A%2F%2Factions-badge.atrox.dev%2FJaid%2Fjaid-core-twitch-auth%2Fbadge" alt="Build status"/></a> <a href="https://raw.githubusercontent.com/Jaid/jaid-core-twitch-auth/master/license.txt"><img src="https://img.shields.io/github/license/Jaid/jaid-core-twitch-auth?style=flat-square" alt="License"/></a> <a href="https://github.com/Jaid/jaid-core-twitch-auth/commits"><img src="https://img.shields.io/github/commits-since/Jaid/jaid-core-twitch-auth/v3.0.0?style=flat-square&logo=github" alt="Commits since v3.0.0"/></a> <a href="https://github.com/Jaid/jaid-core-twitch-auth/commits"><img src="https://img.shields.io/github/last-commit/Jaid/jaid-core-twitch-auth?style=flat-square&logo=github" alt="Last commit"/></a> <a href="https://github.com/Jaid/jaid-core-twitch-auth/issues"><img src="https://img.shields.io/github/issues/Jaid/jaid-core-twitch-auth?style=flat-square&logo=github" alt="Issues"/></a> <a href="https://npmjs.com/package/jaid-core-twitch-auth"><img src="https://img.shields.io/npm/v/jaid-core-twitch-auth?style=flat-square&logo=npm&label=latest%20version" alt="Latest version on npm"/></a> <a href="https://github.com/Jaid/jaid-core-twitch-auth/network/dependents"><img src="https://img.shields.io/librariesio/dependents/npm/jaid-core-twitch-auth?style=flat-square&logo=npm" alt="Dependents"/></a> <a href="https://npmjs.com/package/jaid-core-twitch-auth"><img src="https://img.shields.io/npm/dm/jaid-core-twitch-auth?style=flat-square&logo=npm" alt="Downloads"/></a> **jaid-core plugin for TwitchTV based logins.** ## Usage Events: Event|When|Passed argumements ---|---|--- login|When a user logged in with a web browser|`{twitchUser: TwitchUser, twitchToken: TwitchToken, isNew: boolean}` ## Installation <a href="https://npmjs.com/package/jaid-core-twitch-auth"><img src="https://img.shields.io/badge/npm-jaid--core--twitch--auth-C23039?style=flat-square&logo=npm" alt="jaid-core-twitch-auth on npm"/></a> ```bash npm install --save jaid-core-twitch-auth@^3.0.0 ``` <a href="https://yarnpkg.com/package/jaid-core-twitch-auth"><img src="https://img.shields.io/badge/Yarn-jaid--core--twitch--auth-2F8CB7?style=flat-square&logo=yarn&logoColor=white" alt="jaid-core-twitch-auth on Yarn"/></a> ```bash yarn add jaid-core-twitch-auth@^3.0.0 ``` ## Development Setting up: ```bash git clone git@github.com:Jaid/jaid-core-twitch-auth.git cd jaid-core-twitch-auth npm install ``` Testing: ```bash npm run test:dev ``` Testing in production environment: ```bash npm run test ``` ## License ```text MIT License Copyright © 2020, Jaid <jaid.jsx@gmail.com> (github.com/jaid) Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ```