
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
@caleblawson/auth-workos
Advanced tools
A WorkOS authentication provider for Mastra, enabling seamless integration of WorkOS authentication and authorization in your applications.
npm install @mastra/auth-workos
# or
yarn add @mastra/auth-workos
# or
pnpm add @mastra/auth-workos
import { Mastra } from '@mastra/core';
import { MastraAuthWorkos } from '@mastra/auth-workos';
// Initialize with environment variables
const auth = new MastraAuthWorkos();
// Or initialize with explicit configuration
const auth = new MastraAuthWorkos({
apiKey: 'your_workos_api_key',
clientId: 'your_workos_client_id',
});
// Enable auth in Mastra
const mastra = new Mastra({
...
server: {
experimental_auth: auth,
},
});
The package requires the following configuration:
WORKOS_API_KEY
: Your WorkOS API keyWORKOS_CLIENT_ID
: Your WorkOS client IDYou can also provide these values directly when initializing the provider:
interface MastraAuthWorkosOptions {
apiKey?: string;
clientId?: string;
}
authenticateToken(token: string): Promise<WorkosUser | null>
Verifies a JWT token using WorkOS JWKS and returns the user information if valid.
authorizeUser(user: WorkosUser): Promise<boolean>
Checks if a user has admin privileges by verifying their organization memberships and roles.
MIT
FAQs
Mastra WorkOS Auth integration
We found that @caleblawson/auth-workos 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.