Introduction
Ave provides a complete OAuth 2.0 and OpenID Connect (OIDC) implementation that allows your application to:- Authenticate users with their Ave identity
- Access user profile information
- Obtain long-lived refresh tokens
- Implement secure app-to-app delegation
- Support end-to-end encryption (E2EE) for sensitive data
Discovery Endpoints
Ave exposes standard OIDC discovery endpoints:Supported Features
Grant Types
Ave supports the following OAuth 2.0 grant types:authorization_code- Standard authorization code flowrefresh_token- Token refresh with automatic rotationurn:ietf:params:oauth:grant-type:token-exchange- App-to-app delegation (RFC 8693)
Security Features
- PKCE (Proof Key for Code Exchange) - Required for public clients
- Token rotation - Refresh tokens are automatically rotated on use
- Reuse detection - All tokens revoked if refresh token reuse is detected
- E2EE support - Encrypted app keys for end-to-end encryption
Installation
Install the Ave SDK to get started:npm
yarn
pnpm
Quick Start
Here’s a basic OAuth flow implementation:Configuration Options
AveConfig
Token Response
Successful token exchanges return:Next Steps
Authorization Flow
Learn the complete authorization code flow with PKCE
Token Exchange
Exchange codes and refresh tokens
OAuth Scopes
Understand available OAuth scopes
Delegated Tokens
Implement app-to-app delegation