Replies: 1 comment
-
I'd think that if you continue to base your application around user
I'm not sure why you'd have internal id values changing. There's no need for that: once a record is created it never needs to change. |
Beta Was this translation helpful? Give feedback.
-
Question: Currently, permissions are associated with the
id
field in the users table. However, I'm considering whether it would be safer to associate permissions with theoauth_user_id
field, which stores the GitHub User ID. I'd like to hear your thoughts on this.Pros of Associating with
oauth_user_id
:id
values.Cons of Associating with
oauth_user_id
:Important Note: Our application allows for both local accounts and external authentication via GitHub. Consequently, the
'oauth_user_id'
column may not always be filled in for every user.I'd love to hear the community's opinions and any potential pitfalls or advantages I might not have considered. What's your take on this?
Simplified Table Schema:
Beta Was this translation helpful? Give feedback.
All reactions