Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clerk Handshake Cookie Not handeled? #83

Open
JoeAGarcia opened this issue Jan 27, 2025 · 5 comments
Open

Clerk Handshake Cookie Not handeled? #83

JoeAGarcia opened this issue Jan 27, 2025 · 5 comments
Assignees

Comments

@JoeAGarcia
Copy link

Image

using gem 'clerk-sdk-ruby', '~> 4.0.0.beta4', require: 'clerk'

I noticed i had trouble signing out of my application only on a Production Env but in my Staging Env it works well. Both are Hosted obviously. The reason why i couldn't sign out was because Prod had a cookie named __Clerk_handshake on the client. Staging didn't have this cookie.
How do i know that this was my problem well i could successfully sign out when that cookie would expire or i would manually delete it .

This could be user error but I'm not sure

@tmilewski
Copy link
Member

@JoeAGarcia Thanks for submitting this, but would you mind filing this over in clerk-sdk-ruby? This is a generated library specifically for the Backend API SDK methods.

@tmilewski tmilewski self-assigned this Jan 27, 2025
@tmilewski tmilewski transferred this issue from clerk/clerk-http-client-ruby Jan 28, 2025
@tmilewski tmilewski reopened this Jan 28, 2025
@tmilewski
Copy link
Member

@JoeAGarcia Transferred to clerk-sdk-ruby. Was this working in 4.0.0.beta3?

It's hard to tell from the screenshots but, at first glance, it would appear to me that the issue is the domain. What you'll notice is that the cookies are stored on the root .neighbors.solutions and, as a result, I think that you're seeing conflicts between your staging (admin-staging.neighbors.solutions) env and your production (admin.neighbors.solutions) env.

@jpowell
Copy link

jpowell commented Jan 28, 2025

@tmilewski can you help us figure out what our config should be? We've got the proper subdomain configured in the admin panel, but it appears the behavior is just different in prod vs development.

Would this config be on our server side? We're handling sessions and revoking on the server side, and using the react components to keep login on our domain on the client side.

Thoughts?

@tmilewski
Copy link
Member

@jpowell Would you mind submitting a ticket here: https://clerk.com/contact/support. This will enable us to pull a lot more helpful information per your setup. Thanks!

@jpowell
Copy link

jpowell commented Jan 30, 2025

done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants