Skip to content

Commit fbe859e

Browse files
fix: updating ingestion of refresh token to match desktop app
The desktop app and the web api were configured to supply the parameters differently. It doesn't matter which one we choose so we went with form parameters.
1 parent 6fd23b3 commit fbe859e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nullinside.Api/Controllers/UserController.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ public async Task<RedirectResult> TwitchStreamingToolsLogin([FromQuery] string c
166166
[AllowAnonymous]
167167
[HttpPost]
168168
[Route("twitch-login/twitch-streaming-tools")]
169-
public async Task<IActionResult> TwitchStreamingToolsRefreshToken(string refreshToken, [FromServices] ITwitchApiProxy api,
169+
public async Task<IActionResult> TwitchStreamingToolsRefreshToken([FromForm]string refreshToken, [FromServices] ITwitchApiProxy api,
170170
CancellationToken token = new()) {
171171
string? siteUrl = _configuration.GetValue<string>("Api:SiteUrl");
172172
api.OAuth = new() {

0 commit comments

Comments
 (0)