implementacao-de-auth

implementacao-de-auth is a skill for Claude Code, Codex from ricneves-ai/flowgrammers-skills. It costs 52 tokens per session (899 once invoked), scanned A, original, MIT.

An authentication and authorization implementation guide covers user login, access permissions, and secure session handling. It includes JWT tokens, social login with OAuth 2.0, Supabase Auth, Firebase Auth, role-based permissions, and LGPD compliance.

In plain words
What is it for?
Use it to build or audit login systems, add Google or GitHub sign-in, configure Supabase or Firebase authentication, and implement roles and permissions.
Why use it?
It helps avoid common mistakes in token storage, login flows, permission checks, and privacy requirements.

Skill for Claude CodeCodex

Which agent this was written for is unclear — built for openclaw. Also seen: mentions AGENTS.md; mentions Codex; built for openclaw.

Good fit Use it to build or audit login systems, add Google or GitHub sign-in, configure Supabase or Firebase authentication, and implement roles and permissions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add ricneves-ai/flowgrammers-skills --skill implementacao-de-auth
Clone the repo
git clone --depth 1 https://github.com/ricneves-ai/flowgrammers-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for implementacao-de-auth

README.md
[![agentmods](https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth/github.svg)](https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth)
Your own site
<a href="https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth"><img src="https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for implementacao-de-auth

Your own site · 80×15
<a href="https://agentmods.dev/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth"><img src="https://agentmods.dev/badge/skills/ricneves-ai/flowgrammers-skills/implementacao-de-auth.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 52 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 899 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00052 $0.00899
Opus 5 $0.00026 $0.00449
Sonnet 5 $0.00010 $0.00180
Haiku 4.5 $0.00005 $0.00090

Measured 9d ago against content hash ec6361821bec, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

implementacao-de-auth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 9d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

codigo-automacao/implementacao-de-auth/SKILL.md · 103 lines

How it starts

The opening of the file, as written. The whole thing — 103 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Especialista em Autenticação e Autorização

Você é um engenheiro de segurança especializado em sistemas de autenticação. Seu papel é implementar auth seguro, seguindo boas práticas e compliance com LGPD.

Quando Usar Esta Skill

  • Implementar login com JWT (access + refresh token)
  • Configurar OAuth 2.0 com provedores sociais (Google, GitHub, Facebook)
  • Integrar Supabase Auth ou Firebase Auth em projetos novos
  • Implementar RBAC (Role-Based Access Control) com permissões granulares
  • Auditar sistema de auth existente para vulnerabilidades

Padrões de Autenticação

JWT com Refresh Token

Login → Access Token (15min) + Refresh Token (30 dias, httpOnly cookie)
Request → Bearer access token no Authorization header
Expirou → Usar refresh token para obter novo access token
Logout → Invalidar refresh token no banco (blacklist ou rotate)

Armazenamento Seguro de Tokens

  • Access token: memória da aplicação (não localStorage — XSS)
  • Refresh token: httpOnly cookie (não acessível via JS — protege de XSS)
  • Nunca: tokens no localStorage ou sessionStorage sem necessidade justificada

RBAC Simples

-- Roles: admin, manager, user, viewer
-- Permissões granulares por recurso
CREATE TABLE permissions (
  role VARCHAR(50),
  resource VARCHAR(100),
  action VARCHAR(50),   -- create, read, update, delete
  PRIMARY KEY (role, resource, action)
);

Supabase Auth

// Login com email + senha
const { data, error } = await supabase.auth.signInWithPassword({
  email: '[email protected]',
  password: 'senha123'
});

// OAuth Google
const { data, error } = await supabase.auth.signInWithOAuth({
  provider: 'google',
  options: { redirectTo: 'https://meuapp.com/auth/callback' }
});

Contexto Brasileiro

  • CPF como login: comum em fintechs e sistemas gov BR. Validar antes de aceitar
  • Login por WhatsApp (número BR): via OTP SMS, verificar DDD brasileiro (+55)
  • LGPD: dados de autenticação são dados pessoais. Política de retenção obrigatória
  • ANPD: incidentes de segurança com dados pessoais devem ser notificados em 72h

Read the full file on GitHub · 103 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 9d ago First seen · 103 lines · 52 tokens per session scan A ec6361821bec

Subscribe to this mod's changes

implementacao-de-auth is a skill published in the GitHub repository ricneves-ai/flowgrammers-skills (112 stars, last pushed 3mo ago), licensed MIT. It adds 52 tokens to every session and 899 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

identity-access-expert

Design authentication and authorisation: OAuth 2.1 and OpenID Connect, session and token handling, RBAC and ABAC, and multi-tenant access control. Use when the user mentions OAuth, OIDC, SAML, SSO, JWT, refresh tokens, PKCE, login flows, sessions, roles and permissions, RBAC or ABAC, or when the task involves securing…

personamanagmentlayer/pcl · 99 tokens

auth-patterns

Use when implementing authentication (JWT, sessions, OAuth), authorization (RBAC, ABAC), password hashing, MFA, or security best practices for backend services.

MadAppGang/claude-code · 36 tokens

auth

JWT patterns, API key auth, Supabase Auth, OAuth2 flows, RBAC, FastAPI security dependencies.

LuuOW/meridian-mcp · 24 tokens

api-authentication-bypass

Test APIs for authentication and authorization bypass vulnerabilities including JWT manipulation, OAuth2 flaws, API key leakage, broken authentication, and token forgery. Use this skill when assessing REST/GraphQL APIs for access control weaknesses, session management flaws, or credential handling issues. Covers JWT…

akashrpatil/awesome-offensive-security-skills · 72 tokens

supabase

Use when doing ANY task involving Supabase. Triggers: Supabase products (Database, Auth, Edge Functions, Realtime, Storage, Vectors, Cron, Queues); client libraries and SSR integrations (supabase-js, @supabase/ssr) in Next.js, React, SvelteKit, Astro, Remix; auth issues (login, logout, sessions, JWT, cookies…

supabase/agent-skills · 185 tokens

implementing-jwt-signing-and-verification

JSON Web Tokens (JWT) defined in RFC 7519 are compact, URL-safe tokens used for authentication and authorization in web applications. This skill covers implementing secure JWT signing with HMAC-SHA256.

xalgorix/xalgorix · 50 tokens