@graffiti-garden/implementation-decentralized 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -131,6 +131,8 @@ const MESSAGE_LABEL_INVALID = 3;
131
131
  export interface GraffitiDecentralizedOptions {
132
132
  identityCreatorEndpoint?: string;
133
133
  defaultInboxEndpoints?: string[];
134
+ /** For login hosts that already have the application in the preceding history entry. */
135
+ replaceInitialLoginHistoryEntry?: boolean;
134
136
  }
135
137
 
136
138
  const CONCURRENCY = 128;
@@ -181,6 +183,9 @@ export class GraffitiDecentralized implements Graffiti {
181
183
  protected readonly defaultInboxEndpoints: string[];
182
184
  protected readonly identityCreatorEndpoint: string;
183
185
  constructor(options?: GraffitiDecentralizedOptions) {
186
+ if (options?.replaceInitialLoginHistoryEntry) {
187
+ this.sessions.initialAuthorizationNavigation = "replace";
188
+ }
184
189
  this.defaultInboxEndpoints = options?.defaultInboxEndpoints ?? [
185
190
  "https://graffiti.actor/i/shared",
186
191
  ];