
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@strav/oauth2
Advanced tools
OAuth2 server for the Strav framework. Authorization Code + PKCE, Client Credentials, Refresh Token rotation, Token Revocation (RFC 7009), Token Introspection (RFC 7662), personal access tokens, and scoped API access.
bun add @strav/oauth2
bun strav install oauth2
Requires @strav/core as a peer dependency.
import { defineActions } from '@strav/oauth2'
import User from './models/user'
const actions = defineActions<User>({
async findById(id) { return User.find(id) },
identifierOf(user) { return user.email },
})
import { OAuth2Provider } from '@strav/oauth2'
app.use(new OAuth2Provider(actions))
bun strav oauth2:setup # Create tables + personal access client
bun strav oauth2:client --name "My App" --redirect "https://app.com/callback"
import { oauth, scopes } from '@strav/oauth2'
import { compose } from '@strav/core/http/middleware'
router.group({ prefix: '/api', middleware: [oauth()] }, r => {
r.get('/user', ctx => ctx.json({ user: ctx.get('user') }))
r.get('/repos', compose([scopes('repos:read')], listRepos))
r.post('/repos', compose([scopes('repos:write')], createRepo))
})
import { oauth2 } from '@strav/oauth2'
const { token } = await oauth2.createPersonalToken(user, 'CLI Tool', ['read', 'write'])
bun strav oauth2:setup # Create tables and personal access client
bun strav oauth2:client # Create a new OAuth2 client
bun strav oauth2:purge # Clean up expired tokens and codes
See the full OAuth2 guide.
MIT
FAQs
OAuth2 server implementation for the Strav framework
We found that @strav/oauth2 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.