weegloo-user-login

Authenticate Weegloo platform users via PAT or console login popup for CMA, Upload, and CDA access.

1|2|Updated Feb 20, 2026
One-click install
npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-user-login-weeglooapi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: weegloo-user-login
Source: https://github.com/weeglooapi/weegloo-mcp-plugin/tree/main/plugins/weegloo/skills/weegloo-user-login
Command: npx skills add https://github.com/weeglooapi/weegloo-mcp-plugin --skill weegloo-user-login-weeglooapi

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building admin UIs or automation against Weegloo requires authenticating a Weegloo platform account (Space owner or invited member), but the platform has two separate identity systems and two token mechanisms, making it easy to pick the wrong login model or mishandle token exchange. ## Core Features & Use Cases - Two authentication mechanisms: Use a Personal Access Token (PAT) for server-side, CI, and script access, or the Weegloo Console FE login popup (origin-checked postMessage to sessionStorage) for browser apps including static sites on Weegloo WebHosting. - Token validation and Space gating: Validate tokens with CMA GET /v1/me and enforce Space membership via /v1/me/space-memberships, reading the nested item.sys.space.sys.id path. - Use Case: You are building a custom admin dashboard deployed as a static site on Weegloo WebHosting. This Skill walks you through opening the console login popup, receiving the access token via postMessage, storing it in sessionStorage, and gating the UI to members of your specific Space. ## Quick Start Implement Weegloo User login for my browser-based admin UI using the console login popup and validate the token against my Space membership.

Frequently Asked Questions about weegloo-user-login

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

FAQPage Schema
How do I authenticate a Weegloo user in a browser app?

Open the Weegloo Console login popup with window.open pointing to {console}/login?origin=your origin, listen for a postMessage from the console origin, and store event.data.accessToken in sessionStorage. Then validate it with a CMA GET /v1/me call.

What is the difference between Weegloo User login and Service User login?

Weegloo User login authenticates platform accounts (Space owners or invited members) and authorizes CMA, Upload, and CDA. Service User login is end-user sign-up for the product itself, scoped to ACMA, ACDA, and Upload only.

Can I use a Personal Access Token in client-side JavaScript?

No. A PAT is a long-lived, highly privileged secret intended only for servers, CI jobs, and local scripts. Browser apps must use the console FE login popup flow, which delivers a session token via postMessage into sessionStorage.

Why does my Space membership check always fail?

The Space reference on a SpaceMembership is nested under sys, at item.sys.space.sys.id, not at item.space. Checking m.space.sys.id always returns undefined, so filter the /v1/me/space-memberships response using the nested sys path.

Can a native iOS or Android app sign in a Weegloo User?

No. Both mechanisms require a browser: the popup uses window.open and postMessage, and the platform login sets an HttpOnly cookie with no deep-link return. Native apps should use Service User login or a backend holding a PAT.