-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Which component is affected?
Qwik City (routing)
Describe the bug
I have NGINX setup as reverse proxy for my qwik city Bun server.
When trying to login with Google, i get this error:
Error 400: redirect_uri_mismatch.
Error description shows me that callback uri contains http instead of https.
I tried adding all the different headers through NGINX, didn't help.
Tried adding headers through env file. Didn't help.
Tried adding redirectProxyUrl in plugin@auth.ts, but then I get an error:
InvalidCheck: State cookie was missing
One guy on discord seemed to solve this issue by using getOrigin function in his entry.express.ts
But I am using Bun, not express.
Looking at source code for Node middleware, I tried changing Buns middleware on lines containing: new URL(request.url) to have https. Didn't help.
Thank You in advance!
Reproduction
impossible to reproduce (bun, nginx)
Steps to reproduce
No response
System Info
'@builder.io/qwik-city/middleware/bun'
'@auth/core'
'@builder.io/qwik-auth'
nginxAdditional Information
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
Status