atprotoPdsEndpoint property

String? get atprotoPdsEndpoint

Returns a PDS endpoint based on aud.

Implementation

String? get atprotoPdsEndpoint {
  if (aud == null) return null;

  return aud!.startsWith('did:web:')
      ? aud?.replaceFirst('did:web:', '')
      : aud;
}