What problem does it solve?
Pi Apps need a secure, standardized authentication flow that doesn't rely on passwords or third-party login providers, ensuring identity verification and safe session management for Pioneer users.
Core Features & Use Cases
- SDK-based authentication: Initialize the Pi SDK on the frontend, request appropriate scopes, and obtain a dynamic accessToken along with user data for session creation.
- Server-side verification: Validate the accessToken with the Pi Platform API (GET /v2/me) to bind the proven uid to backend records.
- Security-first practices: Enforce server-side verification, never persist accessToken or uid on the client, and apply proper scopes to protect user identities.
Quick Start
Initialize the Pi SDK on the client, call Pi.authenticate with the required scopes, and handle the resulting auth object to establish a user session.