Giter VIP home page Giter VIP logo

auth's Introduction

Auth

自动获取“大健”和“冠通(赛盈)”的登录 token

下载

yarn add @taichi-yi/auth

或者

npm install @taichi-yi/auth

使用

获取冠通的 token

import { getGotenAuth } from '@taichi-yi/auth';
const foo = async () => {
  const token = await getGotenAuth('18888888888', 'abcdefg')
    .catch(err => {
      console.error(err);
    });
  // token
  // 8F57E801F4C9F4C197CE86B26D79XXX4DD19D00C3C52C2C4F378F5CDA51D725FF0AD0022EF1EF0773F6B10B6BB584FA670A97D8XXX731865649334A01490E2B3E6D229944F29D06F07922E0XXXB3838A51A5B4797AC400FD07725EA560BCC492895C6A7F608B43A8BD1XXX9C8860A878A0E11A27
}

获取赛盈的 token

import { getSaleYeeAuth } from '@taichi-yi/auth';
const foo = async () => {
  const token = await getSaleYeeAuth('18888888888', 'abcdefg')
    .catch(err => {
      console.error(err);
    });
  // token
  // 8F57E801F4C9F4C197CE86B26D79XXX4DD19D00C3C52C2C4F378F5CDA51D725FF0AD0022EF1EF0773F6B10B6BB584FA670A97D8XXX731865649334A01490E2B3E6D229944F29D06F07922E0XXXB3838A51A5B4797AC400FD07725EA560BCC492895C6A7F608B43A8BD1XXX9C8860A878A0E11A27
}

获取大健的 token

import { getGigaAuth } from '@taichi-yi/auth';
const foo = async () => {
  const token = await getGigaAuth('18888888888', 'abcdefg')
    .catch(err => {
      console.error(err);
    });
  // token
  // 3216bf4f227ccc33a66321162a
}

auth's People

Contributors

taichiyi avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.