# `PolarExpress.Services.CustomerPortal.CustomerSessionService`
[🔗](https://github.com/jeffhuen/polar_express/blob/main/lib/polar_express/services/customer_portal/customer_session_service.ex#L2)

Customer-session

CustomerSession API operations.

# `get_authenticated_portal_user`

```elixir
@spec get_authenticated_portal_user(PolarExpress.Client.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.PortalAuthenticatedUser.t()}
  | {:error, PolarExpress.Error.t()}
```

Get Authenticated Portal User

Get information about the currently authenticated portal user.

**Scopes**: `customer_portal:read` `customer_portal:write`

See `PolarExpress.Params.CustomerPortal.CustomerSessionGetAuthenticatedPortalUserParams` for parameter details.

# `introspect_customer_session`

```elixir
@spec introspect_customer_session(PolarExpress.Client.t(), map(), keyword()) ::
  {:ok, PolarExpress.Schemas.CustomerCustomerSession.t()}
  | {:error, PolarExpress.Error.t()}
```

Introspect Customer Session

Introspect the current session and return its information.

**Scopes**: `customer_portal:read` `customer_portal:write`

See `PolarExpress.Params.CustomerPortal.CustomerSessionIntrospectCustomerSessionParams` for parameter details.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
