Validate Authentication Callback
POST
/auth/customer/{auth_provider}/callback
Auth
code
, state
, and error
, must be passed as query parameters to this route.You can decode the JWT token using libraries like react-jwt in the storefront. If the decoded data doesn't have an
actor_id
property, then you must register the customer using the Create Customer API route passing the token in the request's Authorization header.Request Request Example
JavaScript
Shell
Java
Swift
curl --location -g --request POST '{{BASE_URL}}/auth/customer//callback'
Response Response Example
200 - Example 1
{
"token": "string"
}
Request
Path Params
auth_provider
string
required
Example:
google
Responses
Modified at 2025-06-17 04:21:30