edumeet / edumeet-management-server

This is the management service for the Edumeet project
4 stars 5 forks source link

fix: throw actual error in oauth #6

Closed pnts-se closed 1 year ago

pnts-se commented 1 year ago

closes #4 This PR will make oauth debugging easier.

Before, we always get "Missing parameters" no matter what the error was. Now we will get the actual error from the profile argument, like so:

info: Feathers app listening on http://localhost:3030
error: Error: self-signed certificate
    at OAuthTenantStrategy.getEntityQuery (/home/pontus/Edumeet/edumeet-management-server/dist/src/auth/strategies/OAuthTenantStrategy.js:11:19)
    at OAuthTenantStrategy.findEntity (/home/pontus/Edumeet/edumeet-management-server/node_modules/@feathersjs/authentication-oauth/lib/strategy.js:79:34)
    at OAuthTenantStrategy.authenticate (/home/pontus/Edumeet/edumeet-management-server/node_modules/@feathersjs/authentication-oauth/lib/strategy.js:118:44)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)