Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CrudUsecases ¶
func CrudUsecases() crud.Usecases[usersRepoPkg.Users, User]
func UserSettingsCrudUsecases ¶
func UserSettingsCrudUsecases() crud.Usecases[userSettingsRepoPkg.UserSettings, UserSettings]
Types ¶
type RegistrationInfo ¶
type RegistrationInfo struct { Email string Salt decryptionKeyPkg.Salt Verifier string Name string PublicKey decryptionKeyPkg.Key PrivateKey decryptionKeyPkg.Key // These are still just encrypted private keys, but they're encrypted with what are essentially different passwords RecoveryKeys []decryptionKeyPkg.Key PrivateKeySalt []byte Role Role }
type RegistrationInfoResponse ¶
type RegistrationInfoResponse struct { Email string Salt decryptionKeyPkg.Salt Name string UserID app.ID Role Role }
func Register ¶
func Register(ctx app.Context, registrationInfo RegistrationInfo) (RegistrationInfoResponse, error)
Click to show internal directories.
Click to hide internal directories.