---
title: "Authenticates a member for authenticated devices and returns an HTTP-only authentication cookie"
method: POST
path: "/ocapi/v1/members/workstation-authentication-cookie"
tags: ["Loyalty", "Members", "Authentication"]
---

# Authenticates a member for authenticated devices and returns an HTTP-only authentication cookie

`POST /ocapi/v1/members/workstation-authentication-cookie`

The HTTP Authorization header must include a Central Identity Management device token (also known as a DIM token).




Providing this cookie with subsequent requests works as an alternative to the `LoyaltySessionToken` HTTP header.




Sign out is handled by the [ExpireAuthenticationCookie](/openapi/digital-platform/openapi/authentication/ocapimemberauthentication_expireauthenticationcookie) method.




When using cookie-based authentication, the API will automatically refresh the cookie when the access token has expired.




In addition to the authentication cookie, a second `vista-loyalty-member-is-authenticated` cookie is returned that can be used by the client to detect whether the patron is authenticated.




Data is to be provided as `application/x-www-form-urlencoded` form parameters in the format of member workstation authentication request




Unlike the standard member authentication endpoints, the cookie from this endpoint does not have permission to update member details.




#### Error Response

LockOutPeriodInSeconds property will only be present on the response object if the response has the error code 32000.

#### Licenses Required


- Vista.Ocapi

## Headers

- `Connect-Region-Code` string

## Response `204`

Member authenticated cookies created.

## Other responses

- `400` — The provided grant type, credentials, or refresh token are invalid.
- `401` — Authentication JWT is missing.
- `403` — This endpoint can only be used using a CIM Device Authentication token.
- `429` — Member or device locked. Try again later.

---

[API](https://skmtc.net/vista/apis/vista-digital-platform.md) · [All operations](https://skmtc.net/vista/apis/vista-digital-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/vista/vista-digital-platform/versions/3a81c0aed14e/schema)
