The AgentLogin module provides functions for detecting AI agents (e.g. browser-based assistants) on the client side and automating their login process. As with other OwnID SDK methods, these functions are invoked by calling the global ownid function with the method name and parameters. This ensures the AI agent login flow integrates seamlessly into your existing OwnID setup.Documentation Index
Fetch the complete documentation index at: https://docs.ownid.com/llms.txt
Use this file to discover all available pages before exploring further.
Prerequisites
To use AgentLogin, ensure the OwnID SDK is initialized and AgentLogin is enabled in your configuration.Agent Authentication
OwnID flows fully support AI agent authentication out of the box. You might want to encourage users to authenticate when they use an AI agent to ensure secure and auditable sessions by usingownid.ai.loginIfAgent()
Example Usage
Agent Differentiation
You can callownid.ai.getAgentData() to:
- Check whether an AI agent is currently browsing the site.
- If present, retrieve details such as an agent ID and the agent type.
Return Value
- If an AI agent is detected, the method returns an object: