Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
twitch-oauth
Advanced tools
Readme
Authenticate users with Twitch.
# With npm:
npm install twitch-oauth
# With yarn:
yarn add twitch-oauth
import { TwitchOAuth } from 'twitch-oauth';
// Initialize client.
const client = new TwitchOAuth({
clientId: '..............',
clientSecret: '..........',
redirectUri: '...........',
scope: [
"user:read:email",
"......"
],
// Optional, can be "token" or "code" (code is by default and recommended)
method: "code"
});
// Get the auth redirect url.
client.authenticate(); // Returns https://id.twitch.tv/oauth2/authorize?....
// Get access and refresh token using the code that twitch sends the frontend.
client.verifyCodeResponse(code: string)
.then(console.log);
// Check if access token still valid.
client.validate(access_token: string);
// Refresh expired token.
client.refresh(refresh_token: string);
// If uses require function you will need to use .default
// For import in typescript, this is not required
const { TwitchOAuth } = require('twitch-oauth').default;
Contributions, issues and feature requests are welcome! Feel free to check issues page.
Give a ⭐️ if this project helped you!
Or buy me a coffeelatte 🙌🏾
FAQs
Authenticate users with Twitch.
The npm package twitch-oauth receives a total of 9 weekly downloads. As such, twitch-oauth popularity was classified as not popular.
We found that twitch-oauth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.