Skip to main content

resolveUsername

resolveUsername(identifier): Promise<string>

Resolve a username from a KAID or email address

Parameters

identifier: string

KAID, username, or email address

Returns

Promise<string>

Example

const username = await resolveUsername('kaid_376749826184384230772276')
console.log(username) // bhavjitChauhan

Source

src/utils/resolvers.ts:73