fix(sso): migrate to developer-console.yakhub.com.tr and follow redirects

This commit is contained in:
Enes Yakıştır
2026-09-22 18:54:34 +03:00
parent 4327c510e9
commit 8e8170a8dc
3 changed files with 45 additions and 16 deletions
+3 -4
View File
@@ -1,4 +1,4 @@
function registerClient({ registerHook, peertubeHelpers }) {
async function register({ registerHook, peertubeHelpers }) {
try {
fetch('/plugins/auth-yaknet/router/status')
.then(function (r) {
@@ -53,6 +53,5 @@ function registerClient({ registerHook, peertubeHelpers }) {
}
}
if (typeof module !== 'undefined' && module.exports) {
module.exports = { registerClient: registerClient };
}
export { register, register as registerClient };
export default register;