Skip to content

Documentation / expo / createPrivyClient

Function: createPrivyClient() ​

createPrivyClient(__namedParameters): Privy

Creates an instance of the Privy client.

Parameters ​

• __namedParameters: PrivyOptions

Returns ​

Privy

Example ​

ts
const privy = createPrivyClient({
  appId: '<your-privy-app-id>',
  clientId: '<your-privy-app-client-id>',
})

const token = await privy.getAccessToken();