ft-next-session-client

2.2.3 • Public • Published

Next Session Client

Build Status

A client for working with the Ft Next service from the front-end.

Installing

npm install --save ft-next-session-client

Using

var session = require('ft-next-session-client');

session.validate().then(function(isValid){
	// true or false
});

// get uuid from session
session.uuid().then(function(data){
	// data will be false if session is invalid
	var uuid = data.uuid
});

// get session cookie
session.cookie()

Note

The uuid method is cached server-side. If you need to be sure that the user is logged in, use validate().

Readme

Keywords

none

Package Sidebar

Install

npm i ft-next-session-client

Weekly Downloads

2

Version

2.2.3

License

ISC

Last publish

Collaborators

  • aintgoin2goa
  • wheresrhys
  • financial-times