Documentation
¶
Index ¶
- type Store
- func (s *Store) ConsumeMagicLink(_ context.Context, hash []byte) (*theauth.MagicLink, error)
- func (s *Store) ConsumePasswordResetToken(_ context.Context, hash []byte) (*theauth.PasswordResetToken, error)
- func (s *Store) CreateMagicLink(_ context.Context, ml theauth.MagicLink) error
- func (s *Store) CreatePasswordResetToken(_ context.Context, t theauth.PasswordResetToken) error
- func (s *Store) CreateSession(_ context.Context, sess theauth.Session) (theauth.Session, error)
- func (s *Store) CreateUser(_ context.Context, u theauth.User) (theauth.User, error)
- func (s *Store) MarkEmailVerified(_ context.Context, userID theauth.ULID) error
- func (s *Store) RevokeSession(_ context.Context, id theauth.ULID) error
- func (s *Store) RevokeUserSessions(_ context.Context, userID theauth.ULID) error
- func (s *Store) SessionByTokenHash(_ context.Context, hash []byte) (*theauth.Session, error)
- func (s *Store) SetUserPassword(_ context.Context, userID theauth.ULID, passwordHash string) error
- func (s *Store) UserByEmail(_ context.Context, email string) (*theauth.User, error)
- func (s *Store) UserByEmailWithPassword(_ context.Context, email string) (*theauth.User, string, error)
- func (s *Store) UserByID(_ context.Context, id theauth.ULID) (*theauth.User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) ConsumeMagicLink ¶
func (*Store) ConsumePasswordResetToken ¶ added in v0.2.0
func (*Store) CreateMagicLink ¶
func (*Store) CreatePasswordResetToken ¶ added in v0.2.0
func (*Store) CreateSession ¶
func (*Store) CreateUser ¶
func (*Store) MarkEmailVerified ¶
func (*Store) RevokeSession ¶
func (*Store) RevokeUserSessions ¶
func (*Store) SessionByTokenHash ¶
func (*Store) SetUserPassword ¶ added in v0.2.0
func (*Store) UserByEmail ¶
func (*Store) UserByEmailWithPassword ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.