File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -279,8 +279,6 @@ public class Client {
279279
280280// MARK: Security Key Authentication
281281extension Client {
282-
283-
284282 public func submitSecurityKeyPinCode( _ pinCode: String , sessionData: AppleSessionData , authOptions: AuthOptionsResponse ) async throws -> AuthenticationState {
285283 guard let fsaChallenge = authOptions. fsaChallenge else {
286284 throw AuthenticationError . unexpectedSignInResponse ( statusCode: 0 , message: " Auth response is not a FSA Challenge type. Security not secure key? " )
@@ -315,6 +313,11 @@ extension Client {
315313 self . fido2? . cancel ( )
316314 }
317315
316+ /// Clears any cookies from URLSession
317+ @MainActor
318+ public func signout( ) {
319+ Current . network. session. configuration. httpCookieStorage? . removeCookies ( since: . distantPast)
320+ }
318321}
319322
320323extension Data {
You can’t perform that action at this time.
0 commit comments