Pick the fix
A sign-in flow must not leave cookies, caches or credentials on disk. Which configuration?
Hint 1 of 1
Which one keeps nothing on disk?
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A URLSessionConfiguration.ephemeral
Correct. Everything stays in memory and is discarded with the session.
Why not the others?
- B
.defaultwith a short timeout. Default still persists caches and cookies. - C
.background(withIdentifier:). Background sessions are for long transfers, not privacy. - D
URLSession.shared. The shared session uses the shared, persistent stores.