# next-session-client

Latest version **6.0.0** (published 2026-08-28) · 0 weekly downloads

## Install

```sh
npm install next-session-client
pnpm add next-session-client
yarn add next-session-client
bun add next-session-client
```

## Health

**Score 55/100 (C)** — status: active.

Positive: no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads; no types; no esm support.

## Facts

| | |
|---|---|
| Version | 6.0.0 |
| Published | 2026-08-28 |
| First published | 2019-03-05 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 22.x |
| Dependencies | 0 |
| Unpacked size | 16.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | the-ft |

## Links

- npm: https://www.npmjs.com/package/next-session-client
- npm.io page: https://npm.io/package/next-session-client

## Recent versions

- 6.0.0 (latest) — 2026-08-28
- 5.0.1 — 2024-02-12
- 5.0.0 — 2023-04-17
- 4.0.0 — 2022-05-09
- 3.0.1 — 2020-10-14
- 3.0.0 — 2020-09-28
- 2.4.1 — 2020-06-17
- 2.4.0 — 2020-06-17
- 2.3.5 — 2019-03-05

## README

# Next Session Client
[![CircleCI](https://circleci.com/gh/Financial-Times/next-session-client/tree/main.svg?style=svg)](https://circleci.com/gh/Financial-Times/next-session-client/tree/main)

A client for working with the [Next Session service](https://github.com/Financial-Times/next-session).

**Note**: this module is for **client side usage only**; if working from the server, talk to the [Membership Session service](https://developer.ft.com/docs/membership_platform_api) directly.

## Installing

	npm i --save next-session-client


## Usage

	const session = require('next-session-client');

    // get the user's uuid from their session
	session.uuid()
        .then(({ uuid }) => {
    		// uuid is `undefined` if session isn't valid
    	});

	// get user's products
	session.products()
        .then(({ products, uuid }) => {
        });

	// get (secure) session id
	const sessionId = session.sessionId();

---
_Source: https://npm.io/package/next-session-client · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
