undefined not null ofc

This commit is contained in:
2024-01-11 14:28:24 +01:00
parent b478b86dd1
commit 7c3f443ed1

View File

@@ -36,7 +36,7 @@ app.get('/refresh', (req, res) => {
const refresh_token = req.body.refresh_token;
const callbackport = req.query.port;
if(callbackport != null && refresh_token != null){
if(callbackport != undefined && refresh_token != undefined){
try {
const tokenEndpoint = 'https://osu.ppy.sh/oauth/token';