You have been invited to join Shape Docs!
+Shape Docs uses magic links for authentication. This means that you don't need to remember a password.
+Click the link below to request your first magic link to log in:
+ Log in + + + `, + }) + return Promise.resolve() + } +} diff --git a/src/features/admin/data/DbGuestRepository.ts b/src/features/admin/data/DbGuestRepository.ts new file mode 100644 index 00000000..089dbe32 --- /dev/null +++ b/src/features/admin/data/DbGuestRepository.ts @@ -0,0 +1,83 @@ +import { Pool } from "pg" + +export default class DbGuestRepository implements IGuestRepository { + readonly pool: Pool + + constructor(pool: Pool) { + this.pool = pool + } + + /** + * Uses users table owned by Authjs to determine if a guest is active = there's a user with the same email + * + * @returns all guests including their status + */ + async getAll(): Promise