Skip to content

Commit b79972d

Browse files
Make only init and deletePassword methods public for deleting application password upon logout.
1 parent 3d8e66f commit b79972d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Networking/Networking/ApplicationPassword/ApplicationPasswordUseCase.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ enum ApplicationPasswordUseCaseError: Error {
1010
case failedToConstructLoginOrAdminURLUsingSiteAddress
1111
}
1212

13-
public struct ApplicationPassword {
13+
struct ApplicationPassword {
1414
/// WordPress org username that the application password belongs to
1515
///
1616
let wpOrgUsername: String
@@ -95,7 +95,7 @@ final public class DefaultApplicationPasswordUseCase: ApplicationPasswordUseCase
9595

9696
/// Returns the locally saved ApplicationPassword if available
9797
///
98-
public var applicationPassword: ApplicationPassword? {
98+
var applicationPassword: ApplicationPassword? {
9999
storage.applicationPassword
100100
}
101101

@@ -105,7 +105,7 @@ final public class DefaultApplicationPasswordUseCase: ApplicationPasswordUseCase
105105
///
106106
/// - Returns: Generated `ApplicationPassword` instance
107107
///
108-
public func generateNewPassword() async throws -> ApplicationPassword {
108+
func generateNewPassword() async throws -> ApplicationPassword {
109109
async let password = try {
110110
do {
111111
return try await createApplicationPassword()

0 commit comments

Comments
 (0)