1.4.3 • Published 2 days ago

@particle-network/auth-core v1.4.3

Weekly downloads
-
License
Apache-2.0
Repository
-
Last release
2 days ago

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