Get unlimited public & private packages + package-based permissions with npm Pro.Get started »

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().

Keywords

none

Install

npm i ft-next-session-client

DownloadsWeekly Downloads

0

Version

2.2.3

License

ISC

Last publish

Collaborators

  • avatar
  • avatar
  • avatar