createInstance static method
Future<AuthClient>
createInstance({
- required String projectId,
- String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
- required PairingMetadata metadata,
- bool memoryStore = false,
- IHttpClient httpClient = const HttpWrapper(),
- LogLevel logLevel = LogLevel.nothing,
Implementation
static Future<AuthClient> createInstance({
required String projectId,
String relayUrl = WalletConnectConstants.DEFAULT_RELAY_URL,
required PairingMetadata metadata,
bool memoryStore = false,
IHttpClient httpClient = const HttpWrapper(),
LogLevel logLevel = LogLevel.nothing,
}) async {
final client = AuthClient(
core: Core(
projectId: projectId,
relayUrl: relayUrl,
memoryStore: memoryStore,
httpClient: httpClient,
logLevel: logLevel,
),
metadata: metadata,
);
await client.init();
return client;
}