npm.io
3.0.0-alpha.3 • Published 7 months ago

@particle-network/auth-core

Licence
Apache-2.0
Version
3.0.0-alpha.3
Deps
19
Size
289 kB
Vulns
1
Weekly
0

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

Keywords