UNPKG

@particle-network/auth-core

Version:
33 lines (23 loc) 618 B
# Particle Auth Core ## Start Init Auth Core with Particle config, you can get the config from [Particle Dashboard](https://dashboard.particle.network/). ```ts import { particleAuth } from '@particle-network/auth-core'; particleAuth.init({ projectId: string; clientKey: string; appId: string; }); ``` ## Connect ```ts import { connect } from '@particle-network/auth-core'; const userInfo = await connect({ email: 'xxx', code: 'xx', }); ``` ## Learn More - [Website](https://particle.network) - [Documentation](https://docs.particle.network/) - [Live Demo](https://core-demo.particle.network/)