Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

passport-development

Skill by trypostit

Guides Laravel Passport OAuth2 API authentication, covering setup, grant types, OAuth clients, route protection and token scopes. Written for developers building Laravel APIs that need OAuth2 or bearer token access.

  • Score 89
  • 1.6k stars
  • AGPL-3.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install passport-development

Built from the published package, never by AI.

git clone --depth 1 https://github.com/trypostit/trypost /tmp/trypost && mkdir -p ~/.claude/skills && cp -r /tmp/trypost/.cursor/skills/passport-development ~/.claude/skills/passport-development

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install passport-development in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

This agent skill gives an AI assistant guidance for Laravel Passport, an OAuth2 server for Laravel applications. It covers installing Passport, configuring the User model and the api auth guard, and choosing between authorization code, client credentials, personal access token and device authorization grants. It also explains creating OAuth clients with passport:client, protecting routes with auth:api, and checking token scopes.

The skill tells the assistant to use search-docs before writing Passport code, since the documentation under the laravel/framework package holds the implementation details. It lists common pitfalls, such as a missing OAuthenticatable interface, a wrong guard driver, and CSRF requirements for SPA cookie authentication. It is aimed at Laravel developers who need OAuth2, API tokens or third-party API access. The skill is licensed MIT.

Written from the project's SKILL.md and checked against it.

What it can do

  • Passport installationInstalls Passport with php artisan install:api --passport and configures the User model and api guard.
  • Grant type selectionMatches authorization code, PKCE, client credentials, personal access tokens and device authorization to use cases.
  • Client managementCreates OAuth clients with php artisan passport:client and its flags.
  • Route protectionProtects API routes with auth:api middleware and Bearer token headers.
  • Scope enforcementUses CheckToken, CheckTokenForAnyScope and EnsureClientIsResourceOwner middleware.
  • Token lifetimesSets access, refresh and personal access token lifetimes in AppServiceProvider.
  • SPA cookie authenticationExplains the CreateFreshApiToken middleware and the CSRF headers SPA cookie auth requires.
  • Testing helpersUses Passport::actingAs and Passport::actingAsClient to bypass full OAuth flows in tests.
  • Token maintenanceRuns php artisan passport:purge to remove revoked and expired tokens.

What you need

  • A Laravel application
  • The search-docs documentation tool

Try asking

  • Set up Laravel Passport and configure the User model and api guard.
  • Create a client credentials OAuth client for machine-to-machine access.
  • Protect my orders API route so it requires the orders:read scope.

Good to know

  • Legacy Password and Implicit grants are disabled by default and not recommended.
  • Client secrets are hashed and shown only at creation time.
  • Full implementation details are left to the search-docs lookup.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: .cursor/skills/passport-development/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md7 KB

Alternatives to passport-development

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

passport-development: common questions

When should I use Passport instead of Sanctum?

The skill says Passport is a full OAuth2 server for third-party apps, authorization code grants, client credentials or device authorization. Sanctum is simpler for first-party SPAs, third parties or mobile apps that do not need full OAuth2 flows.

Why does Passport authentication fail after setup?

The source names two common causes: a missing OAuthenticatable interface on the User model, and an api guard that uses the token or sanctum driver instead of passport.

Where are the Passport docs?

The source says the Passport docs live under the laravel/framework package, not laravel/passport, and recommends querying them with search-docs.

How do I install passport-development?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is passport-development free?

The code is published under the AGPL-3.0 licence. The service it connects to may have its own pricing.

Is passport-development safe to use?

It scores 89 of 100. Grades: maintenance A, licence C, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to passport-development?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

passport-development Install

Add to stack

Loading.