mirror of
https://github.com/standardnotes/server
synced 2026-10-17 03:03:10 -04:00
feat: sqlite driver for auth service (#572)
* wip: initial sqlite bootstrap * wip: switch to sqlite3 as default db type * wip: boilerplate data * fix(auth): case sensitive register and login * fix(auth): refactor username validations * fix(auth): allow changing username to both username and email: * fix(auth): lock middleware for recovery log in * fix(domain-core): specs for invalid types * fix(auth): lock middleware specs * fix(auth): typeorm code arrangements * fix: running e2e on both mysql and sqlite in ci
This commit is contained in:
@@ -1,11 +1,13 @@
|
||||
import { Email, Username } from '@standardnotes/domain-core'
|
||||
|
||||
import { ReadStream } from 'fs'
|
||||
import { User } from './User'
|
||||
|
||||
export interface UserRepositoryInterface {
|
||||
streamAll(): Promise<ReadStream>
|
||||
streamTeam(memberEmail?: string): Promise<ReadStream>
|
||||
streamTeam(memberEmail?: Email): Promise<ReadStream>
|
||||
findOneByUuid(uuid: string): Promise<User | null>
|
||||
findOneByEmail(email: string): Promise<User | null>
|
||||
findOneByUsernameOrEmail(usernameOrEmail: Email | Username): Promise<User | null>
|
||||
save(user: User): Promise<User>
|
||||
remove(user: User): Promise<User>
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user