Session Management
Authenticate
Authenticate users using Okto Auth by sending a JSON-RPC request to the Okto Gateway. This endpoint handles user authentication and session management.
Dev Tools Available!
For quick testing purposes, we provide development tools like the Okto Auth Token Generator. This tool helps you generate authentication tokens instantly, making it easier to test our APIs.
Warning:Essential Setup Required
ShowBefore you begin, make sure you have:
- Created your Okto Developer Dashboard account
- Obtained your API keys from the dashboard
- Enabled the specific Chains and Tokens you plan to use
POST Request
Endpoint
Headers
Name | Type | Description |
---|---|---|
Content-Type | string | Must be application/json |
Request Body
Tip:Request Parameters
ShowidToken
: The Google ID token obtained from Google OAuthprovider
: Authentication provider ("google")nonce
: A unique identifier for the requestclientSWA
: Your Smart Wallet AddresssessionPk
: The session's public keymaxPriorityFeePerGas
andmaxFeePerGas
: Gas fee parameterspaymaster
: The paymaster contract addresspaymasterData
: Data required for userOp creationsessionDataClientSignature
: Signature of session data using client secret keysessionDataUserSignature
: Signature of session data using session secret key