mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Rename 'Logout' to 'InvalidateSession'
This commit is contained in:
parent
1a4abdc4d8
commit
fa2321e9e8
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue