1
0
mirror of https://github.com/spacebarchat/server.git synced 2024-11-10 04:32:35 +01:00

Update todo in access-token route

This commit is contained in:
Puyodead1 2022-12-23 18:37:11 -05:00
parent 0db1fa5f0b
commit 02a4a6998d
No known key found for this signature in database
GPG Key ID: A4FA4FEC0DD353FC

View File

@ -15,8 +15,8 @@ const router = Router();
// spotify is disabled here because it cant be used
const ALLOWED_CONNECTIONS = ["twitch", "youtube"];
// NOTE: this route has not been extensively tested, as the required connections are not implemented as of writing
router.get("/", route({}), async (req: Request, res: Response) => {
// TODO: get the current access token or refresh it if it's expired
const { connection_name, connection_id } = req.params;
const connection = ConnectionStore.connections.get(connection_id);