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

Feat: Inviting users should store original user id not email. #56

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

graysoncampbell
Copy link

For security the id of the user inviting a new user should be stored forever, however in the previous code it would only store the email. Since the email can be changed at any time by any user you could end up with a situation where you don't know which of your users invited the new user after an email change. For slightly better application hardening lets store the id instead as it follows the user for their whole lifetime using the app.

For security the id of the user inviting a new user should be stored forever, however in the previous code it would only store the email. Since the email can be changed at any time by any user you could end up with a situation where you don't know which of your users invited the new user after an email change.  For slightly better application hardening lets store the id instead as it follows the user for their whole lifetime using the app.
Copy link

vercel bot commented Dec 18, 2023

@graysoncampbell is attempting to deploy a commit to the Nextacular Team on Vercel.

A member of the Team first needs to authorize it.

@arjayosma
Copy link
Collaborator

Good catch @graysoncampbell! I'll review the update. Thanks!

@arjayosma arjayosma added the enhancement New feature or request label Dec 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants