Skip to content

Ericple/vatsim-auth-node

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vatsim-auth-node

vatsim-auth-node pakcage is vatsim auth interface for node.js project. It makes your node.js (Electron for example) application be able to connect to vatsim network with your permission.

You need to obtain VatsimAuth.dll to use this package, it is not provided here as "The VatsimAuth source code is proprietary, and VatsimAuth is not distributed under any license terms. All rights are reserved. Specifically, you may not distribute copies of VatsimAuth."

Usage

  • Install
npm install vatsim-auth-node
  • After you get your VatsimAuth.dll, place it right in the entry point of your project.

For example, this is the structure of a project using vatsim-auth-node package:

  • example-project

    • node_modules
      • .bin
      • typescript
      • vatsim-auth-node
      • something else...
    • index.js
    • index.ts
    • package-lock.json
    • package.json
    • tsconfig.json
    • VatsimAuth.dll
  • Include it in your project

const VatsimAuth = require("vatsim-auth-node");

Or in typescript

import VatsimAuth from 'vatsim-auth-node';
// Check if the package has been loaded successfully
if(VatsimAuth.PackageVerify())
{
    console.log(VatsimAuth.ClientPublicKey());// Output: xxxxx(some number)
    console.log(VatsimAuth);
    // Output:
    // {
    //   GenerateAuthResponse: [Getter],
    //   GenerateAuthChallenge: [Getter],
    //   ClientPublicKey: [Getter],
    //   PackageVerify: [Getter],
    //   default: {
    //     GenerateAuthResponse: [Function (anonymous)],
    //     GenerateAuthChallenge: [Function (anonymous)],
    //     ClientPublicKey: [Function (anonymous)],
    //     PackageVerify: [Function (anonymous)]
    //   }
    // }
}

Detailed usage is not provided.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published