Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ft-next-session-client

Package Overview
Dependencies
Maintainers
3
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ft-next-session-client

[![Build Status](https://snap-ci.com/Financial-Times/next-session-client/branch/master/build_image)](https://snap-ci.com/Financial-Times/next-session-client/branch/master)

  • 2.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

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

FAQs

Package last updated on 15 Feb 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc