formatMessage method

  1. @override
String formatMessage(
  1. SIWECreateMessageArgs params
)
override

Implementation

@override
String formatMessage(SIWECreateMessageArgs params) {
  final authPayload = SessionAuthPayload.fromJson({
    ...params.toJson(),
    'chains': [params.chainId],
    'aud': params.uri,
    'type': params.type?.t,
  });
  _appKit.core.logger.d('[$runtimeType] formatMessage() called');
  return _appKit.formatAuthMessage(
    iss: 'did:pkh:${params.address}',
    cacaoPayload: CacaoRequestPayload.fromSessionAuthPayload(authPayload),
  );
}