wobsoriano / vue-clerk

Community Clerk Vue SDK.
https://vue-clerk.com
MIT License
140 stars 13 forks source link

on a devServer, guestRedirectUrl switches from https to http #145

Open seaniod opened 2 weeks ago

seaniod commented 2 weeks ago

I tried upgrading from 0.4.14, where I had gotten most things working, although with some minor issues remaining.

I tried switching to 0.6.9, using the syntax provided in the current https://github.com/wobsoriano/nuxt-clerk-template/.

With 0.6.9 on my devServer, all guest login attempts result in the URLs being immediately redirected from https to http, with no messages in either the terminal or the browser console. Since my devServer only accepts https, this results in a "The connection was reset" message, thus preventing me from testing login.

I cannot see any way to configure this.

I spend several hours unsuccessfully trying to work around this, including:

FYI here's the nuxt.config.js settings I'm using to enable https with the devServer:

devtools: {enabled: true}, devServer: { port: 3003, host: "0.0.0.0", https: { key: "./server/certificates/server.key", cert: "./server/certificates/server.crt", }, },

FYI here's a video showing the redirect: https://github.com/user-attachments/assets/dff0b772-4aaa-4d1e-b0fc-96f16acd83cf

wobsoriano commented 1 week ago

can you update to the latest version and let me know if it works?

seaniod commented 1 week ago

G'day,

can you update to the latest version and let me know if it works?

OK, I spent some time testing @.*** with my application.

I found that the https > http redirect still happens when I do the following:

https://0.0.0.0:3003 > http://0.0.0.0:3003/?__clerk_handshake=….

But it doesn’t happen when I use:

https://localhost:3003

So, I have a work-around for my case, and hopefully this info will allow your team to reproduce the issue with https://0.0.0.0.

Cheers, Seán

On 19 Sep 2024, at 1:26 pm, Robert Soriano @.***> wrote:

can you update to the latest version and let me know if it works?

— Reply to this email directly, view it on GitHub https://github.com/wobsoriano/vue-clerk/issues/145#issuecomment-2359901318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAU5TNCC6Z5QLP2UDDUZFQLZXI773AVCNFSM6AAAAABOBKEOF2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNJZHEYDCMZRHA. You are receiving this because you authored the thread.