Skip to content

Circle Auth - One tap is all it takes to sign in, authorize a request or perform 2FA*

License

Notifications You must be signed in to change notification settings

circlesystems/circleauth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Circle Auth

Circle Auth - Node.js client for Circle Auth API

Circle Auth allows you to quickly implement userless/passwordless login and 2FA (no more paying for SMS to have 2FA)

We recommend using our Circle Auth Wrapper instead of this module.

Installation

First make sure to get your credentials on Circle Auth Console, if you want to test first, use Circle Auth - Demo

npm

Install it via:

npm install @circlesystems/circleauth --save

Getting Started

Please follow the installation instruction and execute the following JS code:

var circleauth = require('@circlesystems/circleauth');

var api = new circleauth.CircleAuthApi()
var body = new circleauth.Create2FARequest(); // {Create2FARequest} 
var x_ua_appKey = "x_ua_appKey_example"; // {String} Application `appKey`

api.create2FA(body, x_ua_appKey).then(function(data) {
  console.log('API called successfully. Returned data: ' + data);
}, function(error) {
  console.error(error);
});

Documentation for API Endpoints

All URIs are relative to https://circleaccess.circlesecurity.ai/api

Class Method HTTP request Description
CircleAuth.CircleAuthApi create2FA POST /2fa/create/ Create 2FA
CircleAuth.CircleAuthApi expireUserSession POST user/session/expire Expire User Session
CircleAuth.CircleAuthApi getSession GET /session/ Get Session
CircleAuth.CircleAuthApi getUserSession GET user/session Get User Session

Documentation for Models

Distribuition

  1. Update package version at package.json.
  2. Open terminal and run npm publish.
  3. Visit https://www.npmjs.com/package/@circlesystems/circleauth to check latest version.

About

Circle Auth - One tap is all it takes to sign in, authorize a request or perform 2FA*

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published