2.2.3 • Published 7 years ago

ft-next-session-client v2.2.3

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

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

2.2.3

7 years ago

2.2.2

7 years ago

2.2.1

7 years ago

2.2.0

7 years ago

2.1.0

8 years ago

2.0.2

8 years ago

1.1.8

9 years ago

1.0.0

9 years ago