New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

@foxone/mixin-api

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foxone/mixin-api

FoxONE Mixin Network javascript api service

latest
npmnpm
Version
0.1.37
Version published
Maintainers
4
Created
Source

Mixin API

Provide a libary for Mixin Network API calls.

Usage

install from npm:

yarn add @foxone/mixin-api

init instance and configration

import MixinAPI from "@foxone/mixin-api";

const api = new MixinAPI();

api.config({
  client_id: "...",
  session_id: "...",
  private_key: "..."
});

// api calls
const profile = await api.endpoints.getMe();

use encrypts for jwt token generation

import { signAuthenticationToken } from "@foxone/mixin-api/encrypt";

const keys = {
  client_id: "",
  session_id: "",
  private_key: ""
};

signAuthenticationToken(
  keys.client_id,
  keys.session_id,
  keys.private_key,
  "GET",
  "/me",
  ""
);

FAQs

Package last updated on 14 Aug 2023

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