@particle-network/auth-core
TypeScript icon, indicating that this package has built-in type declarations

2.0.6 • Public • Published

Particle Auth Core

Start

Init Auth Core with Particle config, you can get the config from Particle Dashboard.

import { particleAuth } from '@particle-network/auth-core';

particleAuth.init({
    projectId: string;
    clientKey: string;
    appId: string;
});

Connect

import { connect } from '@particle-network/auth-core';

const userInfo = await connect({
  email: 'xxx',
  code: 'xx',
});

Learn More

/@particle-network/auth-core/

    Package Sidebar

    Install

    npm i @particle-network/auth-core

    Weekly Downloads

    1,633

    Version

    2.0.6

    License

    Apache-2.0

    Unpacked Size

    346 kB

    Total Files

    47

    Last publish

    Collaborators

    • pantaovay
    • particle-web3