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

onBeforeConnect or other auth? #92

Open
scottrblock opened this issue Oct 14, 2024 · 1 comment
Open

onBeforeConnect or other auth? #92

scottrblock opened this issue Oct 14, 2024 · 1 comment

Comments

@scottrblock
Copy link

hi there! Not sure if this is part of #57 or #56, but I was wondering how auth is supposed to work with partyserver.

I currently am using partykit and would like to move over to partyserver, but was unsure how to do onBeforeConnect, which I currently use for auth (as per pk docs). Is an equivalent coming to partyserver, or is there some other worker-centric approach that you'd reccomend?

@threepointone
Copy link
Owner

The idea is to add it in your "eyeball" worker, right before routePartyKitRequest. I'll try to have some examples later, but that's pretty much it.

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

2 participants