Skip to content

Commit b8151c2

Browse files
committed
Remove getDID and add getHandle
getDID isn't needed because the "id" property exists (which contains the DID. However, the code for the getHandle method was accidentally used for the getDID method. This has been resolved.
1 parent c707bb9 commit b8151c2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Sources/ATCommonWeb/TypeScript-bound/DIDDocument.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,10 @@ public struct DIDDocument: Codable {
7373
return true
7474
}
7575

76-
/// Attempts to get the decentralized identifier (DID) within the DID document.
76+
/// Attempts to get the handle of the user account.
7777
///
78-
/// - Returns: The decentralized identifier (DID), or `nil` (if it can't find it).
79-
public func getDID() -> String? {
78+
/// - Returns: The handle of the user account, or `nil` (if it can't find it).
79+
public func getHandle() -> String? {
8080
// This searches the array. If there's nothing in the array, it returns `nil`.
8181
// If there is an item in the array, it will stop looping when it finds
8282
// the entry that contains "at://" and returns it (without the "at://").

0 commit comments

Comments
 (0)