newOS for Developers

Back to Skill Portal

Account Management

User registration, authentication, and profile management

Overview

The account hub covers everything from initial phone/OAuth signup to perpetual session management. The authentication flow uses Firebase for identity verification, then exchanges the Firebase ID token for a Newgraph JWT that provides access to all platform APIs.

5 skills
8 endpoints

Authentication Flow

┌──────────────────┐     ┌──────────────────┐     ┌──────────────────┐
│   Firebase Auth  │ ──▶ │  ID Token        │ ──▶ │  Newgraph API    │
│   (Phone/OAuth)  │     │  (short-lived)   │     │  /generateToken  │
└──────────────────┘     └──────────────────┘     └────────┬─────────┘
                                                           │
                                                           ▼
┌──────────────────┐     ┌──────────────────┐     ┌──────────────────┐
│   localStorage   │ ◀── │  Newgraph JWT    │ ◀── │  Session Token   │
│   newsafe-auth   │     │  (7 days)        │     │  Response        │
└──────────────────┘     └──────────────────┘     └──────────────────┘