mirror of
https://github.com/th-ch/youtube-music.git
synced 2026-01-10 10:11:46 +00:00
Fixes the error 500 for /auth/ endpoint (#3627)
Co-authored-by: rewhex <gitea@cluser.local>
This commit is contained in:
@ -75,9 +75,11 @@ export const register = (
|
||||
// SKIP CHECK
|
||||
}
|
||||
|
||||
setConfig({
|
||||
authorizedClients: [...config.authorizedClients, id],
|
||||
});
|
||||
if (!config.authorizedClients.includes(id)) {
|
||||
setConfig({
|
||||
authorizedClients: [...config.authorizedClients, id],
|
||||
});
|
||||
}
|
||||
|
||||
const token = await sign(
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user