convex-auth

- In functions: ctx.auth.getUserIdentity() returns tokenIdentifier , subject , issuer plus provider claims.

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "convex-auth" with this command: npx skills add igorwarzocha/opencode-workflows/igorwarzocha-opencode-workflows-convex-auth

Auth Operations

  • In functions: ctx.auth.getUserIdentity() returns tokenIdentifier , subject , issuer plus provider claims.

  • Custom JWT auth MAY expose claims at identity["properties.email"] style paths.

  • User storage patterns:

  • Client mutation to store user from JWT, or webhook from provider to upsert users.

  • Index lookups SHOULD use by_token / byExternalId .

  • Webhooks: You MUST implement via HTTP actions and verify signatures with provider SDK; signing secrets MUST be stored in env vars.

Convex Auth (Beta) Specifics

  • Supported Methods:

  • Magic Links & OTPs: Email-based links or codes.

  • OAuth: GitHub, Google, Apple, etc.

  • Passwords: Supports reset flows and optional email verification.

  • Components: Does not provide UI components; You MUST build them in React using library hooks.

  • Next.js: SSR/Middleware support is experimental/beta.

Server Function Patterns

  • You MUST read identity via ctx.auth.getUserIdentity() .

  • You MUST enforce row-level authorization in every public function.

  • You SHOULD NOT expose sensitive logic via public functions; prefer internal ones.

Service-to-service Access

  • If no user JWT is available, You SHOULD use a shared secret pattern.

  • You MUST store secrets in deployment env vars; MUST NOT hardcode.

Client Guidance

  • You MUST follow provider quickstarts; MUST NOT invent flows.

  • You SHOULD NOT rely on auth data in client-only code without server verification.

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Coding

powerpoint

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

create-opencode-plugin

No summary provided by upstream source.

Repository SourceNeeds Review
Coding

skill-creator

No summary provided by upstream source.

Repository SourceNeeds Review