Appearance
Documentation / expo / PrivyOptions
Type alias: PrivyOptions
PrivyOptions:
Object
Type declaration
appId
appId:
string
Privy application ID (can be found in privy developer dashboard)
clientId?
clientId?:
string
Privy client ID (can be found in privy developer dashboard, in the clients section for each app)
storage?
storage?:
OAuthProviderType
By default, the Privy SDK will store any persisted state in SecureStorage. This behavior can be overridden by defining in a storage prop that implements the privy Storage
interface.
Example
ts
import type {Storage} from '@privy-io/expo';
class OtherStorage implements Storage { ... }
<PrivyProvider appId="<your-app-id>" storage={OtherStorage}>
{children}
</PrivyProvider>
supportedChains?
supportedChains?: [
OAuthProviderType
,...OAuthProviderType[]
]
A list of supported chains, used to specify which chains should be used throughout the application. Overrides the default list of supported chains. Calling sendTransaction
or switchChain
on an unsupported network will throw an error.
For embedded wallets, the wallet will automatically default to the first supplied supportedChain
.