Authorize consents for the account-holder type the bank supports
Kontist authorized but shared no accounts: psu_type was hardcoded to personal, and Enable Banking documents that a psu_type mismatch can yield a consent without the expected accounts. The bank listing now reports each institution's supported psu_types, the connect form offers only those, the chosen type reaches POST /auth, and an unsupported combination is refused before the user is sent to a bank. The choice is stored per consent so reconnecting reuses it; consents predating the choice stay personal. Also repairs the frontend derivation, which the Montserrat dependency broke: npmDepsHash was stale and web/public was missing from the fileset, so the traced duck icon never reached the built assets.
This commit is contained in:
@@ -68,6 +68,7 @@ export interface Connection {
|
||||
account_id: string;
|
||||
institution: string;
|
||||
country: string;
|
||||
psu_type: string;
|
||||
history_months: number;
|
||||
status: "local" | "connected" | "reconnect_required" | "error";
|
||||
valid_until: string;
|
||||
@@ -77,6 +78,7 @@ export interface Institution {
|
||||
name: string;
|
||||
country: string;
|
||||
logo?: string;
|
||||
psu_types: string[];
|
||||
}
|
||||
export interface State {
|
||||
data: Dataset;
|
||||
|
||||
Reference in New Issue
Block a user