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

2.1.1 • 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

Package Sidebar

Install

npm i @particle-network/auth-core

Weekly Downloads

697

Version

2.1.1

License

Apache-2.0

Unpacked Size

346 kB

Total Files

47

Last publish

Collaborators

  • particle-web3
  • pantaovay