[PR #163] [MERGED] Kick: improve auth: auto-click login button & username retrieval #172

Closed
opened 2026-03-02 04:00:35 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/eerimoq/moblin/pull/163
Author: @Kn0ax
Created: 9/13/2025
Status: Merged
Merged: 9/16/2025
Merged by: @eerimoq

Base: mainHead: main


📝 Commits (3)

  • 2cf4162 Kick: retrieve username when user logs in
  • a73a614 automatically click login button in Kick Auth view
  • 27c4ca4 lint

📊 Changes

3 files changed (+89 additions, -3 deletions)

View changed files

📝 Moblin/Platforms/Kick/KickApi.swift (+23 -0)
📝 Moblin/Various/Settings.swift (+1 -1)
📝 Moblin/View/Settings/Streams/Stream/Kick/StreamKickSettingsView.swift (+65 -2)

📄 Description

This PR refines the Kick authentication experience by automating the login process and ensuring we store accurate channel information after a successful login.

What i changed:
1)Automatically click the Kick “Log in” button in AuthView (embedded js script locates the login button via its data-testID attribute
2) Fetch the authenticated user’s username directly from Kick’s /api/v1/user endpoint upon login and update in the model.

I tested it and works pretty well but I am awaiting Erik’s legendary refactor skills™.

<3


🔄 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/eerimoq/moblin/pull/163 **Author:** [@Kn0ax](https://github.com/Kn0ax) **Created:** 9/13/2025 **Status:** ✅ Merged **Merged:** 9/16/2025 **Merged by:** [@eerimoq](https://github.com/eerimoq) **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`2cf4162`](https://github.com/eerimoq/moblin/commit/2cf4162a8f485b8dda412081bbf8792b9751f55b) Kick: retrieve username when user logs in - [`a73a614`](https://github.com/eerimoq/moblin/commit/a73a6145137c0931e0621c5b09806159f0ec250e) automatically click login button in Kick Auth view - [`27c4ca4`](https://github.com/eerimoq/moblin/commit/27c4ca4b2e2530ab99725dc427aa5c39f184f036) lint ### 📊 Changes **3 files changed** (+89 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `Moblin/Platforms/Kick/KickApi.swift` (+23 -0) 📝 `Moblin/Various/Settings.swift` (+1 -1) 📝 `Moblin/View/Settings/Streams/Stream/Kick/StreamKickSettingsView.swift` (+65 -2) </details> ### 📄 Description This PR refines the Kick authentication experience by automating the login process and ensuring we store accurate channel information after a successful login. What i changed: 1)Automatically click the Kick “Log in” button in AuthView (embedded js script locates the login button via its data-testID attribute 2) Fetch the authenticated user’s username directly from Kick’s /api/v1/user endpoint upon login and update in the model. I tested it and works pretty well but I am awaiting Erik’s legendary refactor skills™. <3 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 04:00:35 +03:00
Sign in to join this conversation.
No labels
pull-request
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/moblin#172
No description provided.