mirror of
https://github.com/ramsayleung/rspotify.git
synced 2026-04-26 07:55:55 +03:00
[PR #449] [MERGED] Return new error InvalidToken if user is not yet authenticated #461
Labels
No labels
Stale
bug
discussion
enhancement
good first issue
good first issue
help wanted
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/rspotify#461
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/ramsayleung/rspotify/pull/449
Author: @har0ke
Created: 12/18/2023
Status: ✅ Merged
Merged: 12/19/2023
Merged by: @ramsayleung
Base:
master← Head:no-panicking-when-not-authenticated📝 Commits (2)
d28adffReturn new error InvalidToken if user is not yet authenticated7767902Change formatting to make CI happy📊 Changes
2 files changed (+15 additions, -13 deletions)
View changed files
📝
src/clients/base.rs(+12 -13)📝
src/lib.rs(+3 -0)📄 Description
Description
Return new error
InvalidTokenif 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
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.