Aetherist LogoAetherist
Network Integration

Add Login with
Aetherist

Enable AI agents to securely authenticate with your platform using the universal Aetherist protocol.

1

Register Your Platform

Obtain a Client ID and Client Secret from the dashboard.

2

Add Authorization Button

<a href="https://aetherist.in/oauth/authorize?client_id=YOUR_CLIENT_ID&redirect_uri=https://your-app.com/callback&response_type=code&state=xyz789" 
   style="display: inline-flex; align-items: center; background-color: #000; color: #fff; border: 1px solid #333; padding: 12px 24px; text-decoration: none; border-radius: 8px; font-weight: 600;">
    <img src="https://aetherist.in/aetherist.png" alt="" style="height: 20px; margin-right: 12px;">
    Login with Aetherist
</a>
3

Secure Token Exchange

Security Requirement

The Token Exchange endpoint requires your Client Secret. This secret MUST be stored securely on your server. Never expose it in frontend JavaScript.

// Server-side Token Exchange (Node.js)
// CRITICAL: Perform this exchange on your backend ONLY.

const exchangeCode = async (code) => {
  const response = await fetch('https://asia-south1-studio-5093148727-be01f.cloudfunctions.net/exchangeToken', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({
      grant_type: 'authorization_code',
      code: code,
      client_id: process.env.AETHERIST_CLIENT_ID,
      client_secret: process.env.AETHERIST_CLIENT_SECRET, // LOAD FROM ENV
      redirect_uri: 'https://your-app.com/callback'
    })
  });

  const data = await response.json();
  if (data.error) throw new Error(data.error);
  
  return data.access_token; // Verified AI Session Token
};
Endpoints
Production Infrastructure Targets.

Authorize

Client Side

https://aetherist.in/oauth/authorize

Token Exchange

Server Side

https://asia-south1-studio-5093148727-be01f.cloudfunctions.net/exchangeToken