Add scouthub-home-be

This commit is contained in:
Lorenzo Sanesi
2026-07-23 19:36:55 +02:00
parent cfd2de4ca3
commit 566754f825
45 changed files with 8233 additions and 0 deletions
@@ -0,0 +1,13 @@
import { KeycloakUserSummary } from './types';
export async function findUserByEmail(email: string): Promise<KeycloakUserSummary | null> {
// TODO: GET {adminBaseUrl}/users?email={email}&exact=true, restituire il
// primo risultato mappato a { id } oppure null se l'array è vuoto.
throw new Error('Not implemented');
}
export async function createUser(email: string, datiProfilo: object): Promise<{ userId: string }> {
// TODO: POST {adminBaseUrl}/users con { email, ...datiProfilo, enabled: true },
// leggere l'id dall'header Location della risposta.
throw new Error('Not implemented');
}