ramsayleung / rspotify

Spotify Web API SDK implemented on Rust
MIT License
632 stars 121 forks source link

Return new error `InvalidToken` if user is not yet authenticated #449

Closed har0ke closed 8 months ago

har0ke commented 8 months ago

Description

Return new error InvalidToken if user is not yet authenticated. The library should never panic when the user forgets to authenticate, but return a valid error to the user.

Motivation and Context

Resolves https://github.com/ramsayleung/rspotify/issues/333

Type of change

ramsayleung commented 8 months ago

Thanks for your contribution, this CI tasks failed.

har0ke commented 8 months ago

Okay, I have fixed the formatting.

ramsayleung commented 8 months ago

Thanks for your contribution, it's merged :)