Analytics
Read sign-in, authorization and user analytics for your onefold application, and its administrative activity.
onefold records how your application's sign-in is used and shows it on the application's Overview and Analytics tabs. The same data is available from the management API.
Analytics
The Analytics tab has three sections:
| Section | What it shows |
|---|---|
| Sign-ins | Sign-ins over time, the methods used, and failures with their reasons |
| Authorizations | New authorizations and revocations, and the scopes granted |
| Users | Monthly active users, where people sign in from by country and approximate city, and on what kind of device |
The Overview tab is a dashboard of the same data for the last 7 or 30 days.
Every figure is an aggregate. Analytics never names a user; for that, use the Users tab.
How far back analytics reach depends on your plan (analytics_retention_days). Older data is
hidden, not deleted, and returns if the value is raised.
Failed token exchanges
The sign-in charts include token exchanges that failed. A sign-in that succeeds for the user and then fails at your token exchange shows up here, which makes this the place to look when users report signing in and then landing on an error in your application.
Read analytics from the API
With an API key that has the analytics:read scope:
| Endpoint | Returns |
|---|---|
GET /api/v1/manage/analytics/ | The time series behind the Analytics tab. granularity is day, week or month. |
GET /api/v1/manage/usage/ | Headline usage numbers for your application |
See the API reference.
Activity
The Activity tab lists administrative changes to your application: who changed its settings, keys, webhooks, domains, branding or plan, and when. It does not contain your users' own account events.
GET /api/v1/manage/activity/ returns the same list, with the activity:read scope.
Account lifecycle
What happens to your application's grants, tokens and data when a user's email address is changed by onefold staff, they reset their password, remove your application, or their account is disabled and restored.
Next.js
Add sign-in to a Next.js App Router application with route handlers, PKCE and your own session.