Socket
Socket
Sign inDemoInstall

authentication4js

Package Overview
Dependencies
Maintainers
8
Versions
890
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

authentication4js

Wix Restaurants Authentication Client


Version published
Weekly downloads
13
decreased by-99.12%
Maintainers
8
Weekly downloads
 
Created
Source

Wix Restaurants Authentication JavaScript Client

NPM version Downloads

This client library is used to authenticate with the Wix Restaurants API.

Usage

Install the library with npm install authentication4js

var AuthenticationClient = require('authentication4js').Authentication;

var authenticationClient = new AuthenticationClient({
  XMLHttpRequest: window.XMLHttpRequest
});

// Authenticate with Wix instance
authenticationClient.wix({
  instance: 'some-wix-instance',
  appKey: 'some-wix-app-key'
}).then(function(loginResponse) {
  console.log(loginResponse.user);
  console.log(loginResponse.accessToken);
});

// Authenticate with Google
authenticationClient.google({
  clientId: 'some-client-id',
  idToken: 'some-id-token'
}).then(function(loginResponse) {
  console.log(loginResponse.user);
  console.log(loginResponse.accessToken);
});

Reporting Issues

Please use the issue tracker to report issues related to this library.

License

This library uses the Apache License, version 2.0.

Keywords

FAQs

Package last updated on 11 Feb 2021

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