[PR #309] [MERGED] Remove 'access_token' parameter when renewing OAuth2 token #598

Closed
opened 2026-03-03 16:49:39 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/OAuthSwift/OAuthSwift/pull/309
Author: @boyvanamstel
Created: 11/10/2016
Status: Merged
Merged: 11/10/2016
Merged by: @phimage

Base: masterHead: renew-token


📝 Commits (2)

  • 4559c19 Remove 'access_token' parameter when renewing OAuth2 token
  • 9895439 Ommit parameters from renewAccessToken instead of removing access_token

📊 Changes

1 file changed (+2 additions, -2 deletions)

View changed files

📝 Sources/OAuth2Swift.swift (+2 -2)

📄 Description

Some services (tested with Spotify) will fail the request for a new token when the access token is specified both as a parameter and a header.

This commit removes the access_token field from the parameters when automatically renewing a token.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/OAuthSwift/OAuthSwift/pull/309 **Author:** [@boyvanamstel](https://github.com/boyvanamstel) **Created:** 11/10/2016 **Status:** ✅ Merged **Merged:** 11/10/2016 **Merged by:** [@phimage](https://github.com/phimage) **Base:** `master` ← **Head:** `renew-token` --- ### 📝 Commits (2) - [`4559c19`](https://github.com/OAuthSwift/OAuthSwift/commit/4559c190b87ef7ec81007107a209163039d1513b) Remove 'access_token' parameter when renewing OAuth2 token - [`9895439`](https://github.com/OAuthSwift/OAuthSwift/commit/989543968cf89d6f0dd3d9125cc0c854976bc04e) Ommit parameters from renewAccessToken instead of removing access_token ### 📊 Changes **1 file changed** (+2 additions, -2 deletions) <details> <summary>View changed files</summary> 📝 `Sources/OAuth2Swift.swift` (+2 -2) </details> ### 📄 Description Some services (tested with Spotify) will fail the request for a new token when the access token is specified both as a parameter and a header. This commit removes the access_token field from the parameters when automatically renewing a token. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 16:49:39 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#598
No description provided.