miolo-auth

Configure Passport, local, Google OAuth2, basic, and guest authentication strategies for Miolo applications.

Updated Feb 4, 2022
One-click install
npx skills add https://github.com/afialapis/miolo --skill miolo-auth
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: miolo-auth
Source: https://github.com/afialapis/miolo/tree/main/skills/miolo-auth
Command: npx skills add https://github.com/afialapis/miolo --skill miolo-auth

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Authentication configuration and strategies for miolo applications to secure routes and manage sessions.

Core Features & Use Cases

  • Built-in Passport-based authentication for local and Google OAuth2
  • Basic and Guest authentication options for simple APIs
  • Centralized session handling and user management

Quick Start

Configure your miolo app to use the passport-based auth by importing the auth module and enabling the passport strategy in the main config.

Frequently Asked Questions about miolo-auth

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I add Passport authentication to a Miolo app?

Adding Passport authentication to a Miolo app involves importing the auth module and enabling the passport strategy in the main config. This setup provides session management, login, logout, and route protection.

Can I use Google OAuth2 for session management in Miolo?

Yes, you can use Google OAuth2 for session management in Miolo. The Skill implements environment-driven settings for Google credentials and session salts, enabling secure login and user lookup directly within your application routes.

What authentication strategies are available for securing Miolo routes?

Available authentication strategies for securing Miolo routes include local, Google OAuth2, basic, and guest. These options cover everything from simple APIs to centralized session handling and user management via Passport.

Do I need environment variables to configure Google OAuth2 in Miolo?

Yes, you need environment variables to configure Google OAuth2 in Miolo. The Skill implements environment-driven settings specifically for Google credentials, session salts, and URL endpoints to manage secure authentication.

Does Miolo support basic and guest authentication for simple APIs?

Yes, Miolo supports basic and guest authentication options designed specifically for simple APIs. These strategies provide lightweight route protection alongside the more comprehensive Passport-based local and Google OAuth2 methods.