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

Pass socket_id to setAuth #121

Merged
merged 1 commit into from
Oct 7, 2021

Conversation

iggyvolz
Copy link
Contributor

@iggyvolz iggyvolz commented Oct 7, 2021

The socket_id parameter is already passed through the register method, however this is not typed. Passing the socket_id into the auth function allows storing information about the user (ex. their username or authorization level).

Additionally added a test to ensure that the ID stays consistent. Wasn't able to run tests locally (npm run test gave unrelated errors) but this should be a fairly trivial change.

Copy link
Member

@mkozjak mkozjak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice! Thanks!

@mkozjak mkozjak merged commit a74c990 into elpheria:trunk Oct 7, 2021
@iggyvolz iggyvolz deleted the pass-socket-id-to-setauth branch October 7, 2021 22:25
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

Successfully merging this pull request may close these issues.

2 participants