I've just begun my first Snap application, and there is something I do not quite understand. How exactly am I supposed to manage my users?
There already appears to be an AuthUser
type for dealing with user authentication. My question is more about additional user data. Such as collecting their name, location, etc.
I have found the snap-auth module on GitHub outlining the creation of a User
type that has the AuthUser
embedded inside. My only concern is that it is quite old and may not be the current best practise in this area.
The way I usually deal with additional user data is to put it in a separate table keyed by the key from the AuthUser type.