
Research
/Security News
Weaponizing Discord for Command and Control Across npm, PyPI, and RubyGems.org
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
@mastra/auth-supabase
Advanced tools
A Supabase authentication integration for Mastra, providing seamless authentication and authorization capabilities using Supabase's authentication system.
npm install @mastra/auth-supabase
# or
yarn add @mastra/auth-supabase
# or
pnpm add @mastra/auth-supabase
import { Mastra } from '@mastra/core';
import { MastraAuthSupabase } from '@mastra/auth-supabase';
// Initialize with environment variables
const auth = new MastraAuthSupabase();
// Or initialize with explicit configuration
const auth = new MastraAuthSupabase({
url: 'your-supabase-url',
anonKey: 'your-supabase-anon-key',
});
// Enable auth in Mastra
const mastra = new Mastra({
...
server: {
experimental_auth: auth,
},
});
The package can be configured in two ways:
Environment Variables:
SUPABASE_URL
: Your Supabase project URLSUPABASE_ANON_KEY
: Your Supabase anonymous keyConstructor Options:
interface MastraAuthSupabaseOptions {
url?: string;
anonKey?: string;
}
authenticateToken(token: string)
Authenticates a user token and returns the user information if valid.
authorizeUser(user: User)
Checks if a user has the required permissions (currently checks for admin status).
Elastic-2.0
FAQs
Mastra Supabase Auth integration
The npm package @mastra/auth-supabase receives a total of 367 weekly downloads. As such, @mastra/auth-supabase popularity was classified as not popular.
We found that @mastra/auth-supabase demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 11 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 how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.
Security News
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.