@ecency/sdk 2.0.3 → 2.0.5

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.
@@ -130,9 +130,12 @@ interface PlatformAdapter {
130
130
  * Get the login method used for this user.
131
131
  *
132
132
  * @param username - The username to check
133
+ * @param authority - The authority level needed for the operation ('posting' | 'active' | 'owner' | 'memo').
134
+ * Adapters can use this to return a different method depending on what key the operation requires.
135
+ * For example, an active-key user might return 'key' for active ops but 'hivesigner' for posting ops.
133
136
  * @returns Login type ('key', 'hivesigner', 'keychain', 'hiveauth') or null
134
137
  */
135
- getLoginType: (username: string) => Promise<string | null | undefined>;
138
+ getLoginType: (username: string, authority?: string) => Promise<string | null | undefined>;
136
139
  /**
137
140
  * Check if user has granted ecency.app posting authority.
138
141
  *