Skip to content

Commit 339d577

Browse files
authored
fix(swift): update signout code snippet (#7630)
1 parent 0926392 commit 339d577

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

src/fragments/lib/auth/ios/signout/10_local_signout.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,17 @@ func signOutLocally() async {
2121
// Sign Out completed with some errors. User is signed out of the device.
2222

2323
if let hostedUIError = hostedUIError {
24-
print("HostedUI error \(String(describing: hostedUIError))
24+
print("HostedUI error \(String(describing: hostedUIError))")
2525
}
2626

2727
if let globalSignOutError = globalSignOutError {
2828
// Optional: Use escape hatch to retry revocation of globalSignOutError.accessToken.
29-
print("GlobalSignOut error \(String(describing: globalSignOutError))
29+
print("GlobalSignOut error \(String(describing: globalSignOutError))")
3030
}
3131

3232
if let revokeTokenError = revokeTokenError {
3333
// Optional: Use escape hatch to retry revocation of revokeTokenError.accessToken.
34-
print("Revoke token error \(String(describing: revokeTokenError))
34+
print("Revoke token error \(String(describing: revokeTokenError))")
3535
}
3636

3737
case .failed(let error):
@@ -64,17 +64,17 @@ func signOutLocally() -> AnyCancellable {
6464
case let .partial(revokeTokenError, globalSignOutError, hostedUIError):
6565
// Sign Out completed with some errors. User is signed out of the device.
6666
if let hostedUIError = hostedUIError {
67-
print("HostedUI error \(String(describing: hostedUIError))
67+
print("HostedUI error \(String(describing: hostedUIError))")
6868
}
6969

7070
if let globalSignOutError = globalSignOutError {
7171
// Optional: Use escape hatch to retry revocation of globalSignOutError.accessToken.
72-
print("GlobalSignOut error \(String(describing: globalSignOutError))
72+
print("GlobalSignOut error \(String(describing: globalSignOutError))")
7373
}
7474

7575
if let revokeTokenError = revokeTokenError {
7676
// Optional: Use escape hatch to retry revocation of revokeTokenError.accessToken.
77-
print("Revoke token error \(String(describing: revokeTokenError))
77+
print("Revoke token error \(String(describing: revokeTokenError))")
7878
}
7979

8080
case .failed(let error):

src/pages/[platform]/build-a-backend/auth/connect-your-frontend/sign-out/index.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -265,17 +265,17 @@ func signOutLocally() async {
265265
// Sign Out completed with some errors. User is signed out of the device.
266266

267267
if let hostedUIError = hostedUIError {
268-
print("HostedUI error \(String(describing: hostedUIError))
268+
print("HostedUI error \(String(describing: hostedUIError))")
269269
}
270270

271271
if let globalSignOutError = globalSignOutError {
272272
// Optional: Use escape hatch to retry revocation of globalSignOutError.accessToken.
273-
print("GlobalSignOut error \(String(describing: globalSignOutError))
273+
print("GlobalSignOut error \(String(describing: globalSignOutError))")
274274
}
275275

276276
if let revokeTokenError = revokeTokenError {
277277
// Optional: Use escape hatch to retry revocation of revokeTokenError.accessToken.
278-
print("Revoke token error \(String(describing: revokeTokenError))
278+
print("Revoke token error \(String(describing: revokeTokenError))")
279279
}
280280

281281
case .failed(let error):
@@ -307,17 +307,17 @@ func signOutLocally() -> AnyCancellable {
307307
case let .partial(revokeTokenError, globalSignOutError, hostedUIError):
308308
// Sign Out completed with some errors. User is signed out of the device.
309309
if let hostedUIError = hostedUIError {
310-
print("HostedUI error \(String(describing: hostedUIError))
310+
print("HostedUI error \(String(describing: hostedUIError))")
311311
}
312312

313313
if let globalSignOutError = globalSignOutError {
314314
// Optional: Use escape hatch to retry revocation of globalSignOutError.accessToken.
315-
print("GlobalSignOut error \(String(describing: globalSignOutError))
315+
print("GlobalSignOut error \(String(describing: globalSignOutError))")
316316
}
317317

318318
if let revokeTokenError = revokeTokenError {
319319
// Optional: Use escape hatch to retry revocation of revokeTokenError.accessToken.
320-
print("Revoke token error \(String(describing: revokeTokenError))
320+
print("Revoke token error \(String(describing: revokeTokenError))")
321321
}
322322

323323
case .failed(let error):

0 commit comments

Comments
 (0)