AgeOnce Docs
Integration

Integration Overview

AgeOnce integration examples for popular backend languages

AgeOnce Integration

Select your programming language to view the full integration example.

All examples use standard HTTP libraries. You can adapt them to your framework.

Available Examples

General Approach

Regardless of language, integration consists of three main parts:

1. Initiate verification

GET https://app.ageonce.com/?client_id=...&redirect_uri=...&state=...

redirect_uri must already be saved in the dashboard. The verification page is the app root. A request to /verify returns 404.

2. Handle callback

GET /callback?code=... -> exchange code for token

3. Validate token

GET /api/verify/token/{access_token}, or local JWT validation with RS256

Environment Variables

All examples use the following variables:

AGEONCE_CLIENT_ID=your_client_id
AGEONCE_CLIENT_SECRET=your_client_secret
AGEONCE_REDIRECT_URI=https://yoursite.com/callback
AGEONCE_APP_URL=https://app.ageonce.com
AGEONCE_API_URL=https://api.ageonce.com

Never store CLIENT_SECRET in frontend code or public repositories!

On this page