From fa2321e9e8517ab66a55a95e0d7bfb71c495ec36 Mon Sep 17 00:00:00 2001 From: bytedream Date: Thu, 23 Jun 2022 17:40:29 +0200 Subject: [PATCH] Rename 'Logout' to 'InvalidateSession' --- crunchyroll.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crunchyroll.go b/crunchyroll.go index 9c786c6..a8b3284 100644 --- a/crunchyroll.go +++ b/crunchyroll.go @@ -250,11 +250,11 @@ type Crunchyroll struct { cache bool } -// Logout logs the user out which invalidates the current session. +// InvalidateSession logs the user out which invalidates the current session. // You have to call a login method again and create a new Crunchyroll instance // if you want to perform any further actions since this instance is not usable // anymore after calling this. -func (c *Crunchyroll) Logout() error { +func (c *Crunchyroll) InvalidateSession() error { endpoint := "https://crunchyroll.com/logout" _, err := c.request(endpoint, http.MethodGet) return err