Install the SDK
Integrate authentication
Initiate login
Use the client helper to redirect users to Ave’s login page with PKCE security.This automatically:
- Generates a secure PKCE code verifier
- Creates the code challenge
- Stores the verifier in sessionStorage
- Redirects to Ave’s login page
Handle the callback
After authentication, Ave redirects back to your
redirectUri with a code. Exchange it for tokens on your server.Alternative: Use the embed SDK
For a more integrated experience, use@ave-id/embed to show Ave’s login UI directly in your app without redirects.
- Inline iframe
- Modal sheet
- Popup window
Next Steps
OAuth flow
Learn about the complete OAuth 2.0 flow
Client helpers
Explore browser-side SDK functions
Server helpers
Backend token exchange and validation
Embed components
Integrate Ave UI into your app