Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@smarthr/next-auth
Advanced tools
@smarthr/next-auth
next-auth に渡す adapter と provider を提供しているパッケージです。
adapter は redis を使用し、provider は SmarthrProvider を使用することを想定しています。
RedisAdapter には ioredis のインスタンスを渡します。
// pages/api/auth/[...nextauth].ts
import type { NextApiRequest, NextApiResponse } from 'next'
import NextAuth from 'next-auth'
import { RedisAdapter, SmarthrProvider } from '@smarthr/next-auth'
export default async function auth(req: NextApiRequest, res: NextApiResponse) {
return NextAuth(req, res, {
adapter: RedisAdapter(redisClient),
provider: [
SmarthrProvider({
smarthrUrl: 'smarthrUrl',
redirectUri: 'redirectUri',
clientId: 'clientId',
clientSecret: 'clientSecret',
})
],
// ...省略
})
}
This project is licensed under the terms of the MIT license.
FAQs
SmartHR's next-auth utility
The npm package @smarthr/next-auth receives a total of 4,150 weekly downloads. As such, @smarthr/next-auth popularity was classified as popular.
We found that @smarthr/next-auth demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.