Skip to content

getAuthDetails

getAuthDetails returns the details about the authenticated user, specifically all EOA addresses tied to the user's Particle account.

This method must be called after authenticate. Otherwise, this method will throw an error with the message Not Authenticated.

Usage

example.ts
import { createParticleSigner } from "./particle";

const particleSigner = await createParticleSigner();
 
const details = await particleSigner.getAuthDetails();

Returns

Promise<ParticleUserInfo>

A Promise containing the ParticleUserInfo, an object derived from Particle's UserInfo interface.