createInstance static method
Future<AuthClient>
createInstance({
- required String projectId,
- String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
- required PairingMetadata metadata,
- IStore<
Map< ? store,String, dynamic> > - IHttpClient httpClient = const HttpWrapper(),
Implementation
static Future<AuthClient> createInstance({
required String projectId,
String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
required PairingMetadata metadata,
IStore<Map<String, dynamic>>? store,
IHttpClient httpClient = const HttpWrapper(),
}) async {
final client = AuthClient(
core: Core(
projectId: projectId,
relayUrl: relayUrl,
store: store,
httpClient: httpClient,
),
metadata: metadata,
);
await client.init();
return client;
}