Skip to content

Commit

Permalink
patch(logout): remove token after logout call
Browse files Browse the repository at this point in the history
  • Loading branch information
cryptoAlgorithm committed Mar 18, 2024
1 parent f4134c4 commit 02efce5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/DiscordKitCore/REST/APIUser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ public extension DiscordREST {
/// - provider: Unknown, always observed to be nil
/// - voipProvider: Unknown, always observed to be nil
func logOut(provider: String? = nil, voipProvider: String? = nil) async throws {
return try await postReq(path: "auth/logout", body: LogOut(provider: provider, voip_provider: voipProvider))
try await postReq(path: "auth/logout", body: LogOut(provider: provider, voip_provider: voipProvider))
setToken(token: nil)
}
/// Edit Current User
///
Expand Down

0 comments on commit 02efce5

Please sign in to comment.