Skip to content

Commit 4786381

Browse files
committed
Only logout of cookie sessions
1 parent 29aee6a commit 4786381

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CouchDB.Driver/CouchClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ public void Dispose()
303303

304304
protected virtual void Dispose(bool disposing)
305305
{
306-
if (_settings.LogOutOnDispose)
306+
if (_settings.AuthenticationType == AuthenticationType.Cookie && _settings.LogOutOnDispose)
307307
{
308308
AsyncContext.Run(() => LogoutAsync().ConfigureAwait(false));
309309
}

0 commit comments

Comments
 (0)