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
Available Skills
Create Account
beginner
Phone/OAuth signup with Firebase token exchange
POST /userSession Token
beginner
Exchange Firebase ID token for Newgraph JWT
POST /auth/generateSessionTokenSocial Connect
intermediateComing Soon
Link Twitter, Instagram, and other OAuth providers
GET /auth/provider/{provider}POST /auth/instagramProfile Update
beginner
Update bio, avatar, social links, and preferences
PUT /userPOST /user/userUpload/avatarPerpetual Session
advanced
Never-expire auth with automatic token refresh
POST /auth/generateSessionTokenAuthentication Flow
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ Firebase Auth │ ──▶ │ ID Token │ ──▶ │ Newgraph API │
│ (Phone/OAuth) │ │ (short-lived) │ │ /generateToken │
└──────────────────┘ └──────────────────┘ └────────┬─────────┘
│
▼
┌──────────────────┐ ┌──────────────────┐ ┌──────────────────┐
│ localStorage │ ◀── │ Newgraph JWT │ ◀── │ Session Token │
│ newsafe-auth │ │ (7 days) │ │ Response │
└──────────────────┘ └──────────────────┘ └──────────────────┘