Getting Started
Welcome to YeboID — the identity and authentication platform built for African applications.
What is YeboID?
YeboID provides:
- Phone-first authentication — Users sign in with their phone number and PIN
- KYC verification — Verify user identity with government-issued IDs via YeboVerify
- OAuth 2.0 + PKCE — Industry-standard secure authentication
- Pre-built UI components — Beautiful Flutter widgets with Midnight Gold theme
Prerequisites
Before integrating YeboID, you'll need:
- A YeboID Application — Register at yeboid.com to get your
client_id - Redirect URI — Set up a custom URL scheme for your app (e.g.,
yourapp://auth)
Integration Options
Flutter SDK (Recommended)
The fastest way to add YeboID to your mobile app:
dart
YeboIDProvider(
config: YeboIDConfig(
clientId: 'your-app-id',
redirectUri: 'yourapp://auth',
),
child: MyApp(),
)View Flutter SDK Documentation →
REST API
For backend integrations or custom implementations:
- OAuth 2.0 authorization endpoint:
https://yeboid.com/oauth/authorize - Token endpoint:
https://api.yeboid.com/oauth/token - User info endpoint:
https://api.yeboid.com/users/me
Authentication Flow
YeboID uses the standard OAuth 2.0 Authorization Code flow with PKCE:
mermaid
sequenceDiagram
participant App
participant YeboID
participant User
App->>YeboID: 1. Authorization request + code_challenge
YeboID->>User: 2. Show login screen
User->>YeboID: 3. Enter phone + PIN
YeboID->>App: 4. Redirect with authorization code
App->>YeboID: 5. Exchange code + code_verifier for tokens
YeboID->>App: 6. Return access_token + refresh_token
App->>YeboID: 7. Fetch user profileToken Lifecycle
| Token | Lifetime | Usage |
|---|---|---|
| Access Token | 15 minutes | API requests (Authorization: Bearer <token>) |
| Refresh Token | 30 days | Get new access tokens |
| ID Token | 15 minutes | Contains user claims (OpenID Connect) |
KYC Verification
Users can optionally verify their identity through YeboVerify:
- User taps "Verify Identity" in your app
- Opens YeboVerify in browser
- User uploads government ID + selfie
- Verification processed (usually < 2 minutes)
- User returns to your app with verified status
Verified users have:
kyc_status: "verified"kyc_country— Country code from their IDkyc_verified_at— Timestamp of verification
Supported Countries
YeboID currently supports phone numbers and KYC for:
| Country | Code | ID Types |
|---|---|---|
| Eswatini | SZ | National ID |
| South Africa | ZA | National ID, Passport |
| Mozambique | MZ | National ID |
| Kenya | KE | National ID |
| Nigeria | NG | National ID, Passport |
More countries coming soon.