mirror of
https://github.com/PretendoNetwork/miiverse-api.git
synced 2026-08-17 22:27:25 -05:00
fix: allow /v1/endpoint access without user settings for new user creation
This commit is contained in:
@@ -97,7 +97,9 @@ async function auth(request: express.Request, response: express.Response, next:
|
||||
|
||||
const userSettings = await getUserSettings(request.pid);
|
||||
|
||||
if (!userSettings) {
|
||||
if (!userSettings && request.path === '/v1/endpoint') {
|
||||
return next();
|
||||
} else if (!userSettings) {
|
||||
return badAuth(response, 18, 'BAD_PARAM');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user