Skip to main content

Documentation Index

Fetch the complete documentation index at: https://jamesauth.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Using your preferred method, once you have made a request, you need to receive the data back after successful auth. If no redirect_url is provided, the authentication window will close and send data to your application via postMessage.
window.addEventListener('message', (event) => { if (event.data.type === 'JAMES_AUTH_SUCCESS') { console.log('User authenticated:', event.data.user); console.log('Service:', event.data.service); } });

Method 2: Redirect (beta)

If you provide a redirect_url in your service configuration, users will be redirected back to your application with authentication data as URL parameters. For example, you could redirect to example.com/authsuccess.html?params and receive the data like this:
https://example.com/authsuccess.html?user_id=123&email=user@example.com&name=John Doe&avatar=https://example.com/photo.jpg&cloud_storage=true