cogentapps / chat-with-gpt

An open-source ChatGPT app with a voice
https://www.chatwithgpt.ai
MIT License
2.3k stars 489 forks source link

auth0 broken #159

Closed kaspar030 closed 1 year ago

kaspar030 commented 1 year ago

I recently pulled the latest container, and suddenly my auth0 authentication (against authelia) doesn't work anymore. chat-with-gpt correctly forwards to the login prompt (e.g., when clicking on "sign in to sync"), but when back, the app is not signed in.

The logs contain this:


chat-with-gpt-chat-with-gpt-1  | TypeError: request.isAuthenticated is not a function
chat-with-gpt-chat-with-gpt-1  |     at /app/src/endpoints/session.ts:14:61
chat-with-gpt-chat-with-gpt-1  |     at Array.filter (<anonymous>)
chat-with-gpt-chat-with-gpt-1  |     at SessionRequestHandler.<anonymous> (/app/src/endpoints/session.ts:10:14)
chat-with-gpt-chat-with-gpt-1  |     at Generator.next (<anonymous>)
chat-with-gpt-chat-with-gpt-1  |     at /app/src/endpoints/session.ts:8:71
chat-with-gpt-chat-with-gpt-1  |     at new Promise (<anonymous>)
chat-with-gpt-chat-with-gpt-1  |     at __awaiter (/app/src/endpoints/session.ts:4:12)
chat-with-gpt-chat-with-gpt-1  |     at SessionRequestHandler.handler (/app/src/endpoints/session.ts:20:16)
chat-with-gpt-chat-with-gpt-1  |     at SessionRequestHandler.<anonymous> (/app/src/endpoints/base.ts:26:31)
chat-with-gpt-chat-with-gpt-1  |     at Generator.next (<anonymous>)
cogentapps commented 1 year ago

Should be fixed now, would you be able to check again?

kaspar030 commented 1 year ago

Should be fixed now, would you be able to check again?

Seems fixed. Thanks a lot. That was fast!