npm.io
1.0.6 • Published 5 years ago

nekocas

Licence
Apache-2.0
Version
1.0.6
Deps
1
Size
2 kB
Vulns
23
Weekly
0

NekoCAS_Node_SDK

NekoCAS SDK for Node

Installation

npm install nekocas

Begin to use

var NekoCAS = require('nekocas');

// Input the NekoCAS URL and the service secret.
var cas = new NekoCAS("https://cas.n3ko.co", "1aa05ba333b469f580a0577b1a86a5af")

// Validate the ticket.
cas.validate("ST-YEQLkc9WQCDRoo7Io9lKPOZY5uyptzkY").then((data) => {
    console.log(`usertoken: ${data.token}`)
}).catch(console.log)