GetByEmail returns a user by email.
(ctx context.Context, email string)
| 88 | |
| 89 | // GetByEmail returns a user by email. |
| 90 | func (s *UsersStore) GetByEmail(ctx context.Context, email string) (*models.User, error) { |
| 91 | d := s.db.DB(ctx) |
| 92 | u, err := d.Queries.GetUserByEmail(ctx, email) |
| 93 | if err != nil { |
| 94 | return nil, err |
| 95 | } |
| 96 | out := dbUserToModel(u) |
| 97 | return &out, nil |
| 98 | } |
| 99 | |
| 100 | // GetByOidcSub returns a user by OIDC subject. |
| 101 | func (s *UsersStore) GetByOidcSub(ctx context.Context, oidcSub string) (*models.User, error) { |
nothing calls this directly
no test coverage detected