From 879d67214aae2a8c2ab84ec7200a4504a1e0e43c Mon Sep 17 00:00:00 2001 From: Federico Cucino <24813315+fcucino@users.noreply.github.com> Date: Fri, 30 Jan 2026 15:40:12 +0100 Subject: [PATCH] Parsed token `amr` claim is of type array of strings Keycloak server actually returns it as a JSON **array** (`string[]`) per [RFC 8176](https://datatracker.ietf.org/doc/html/rfc8176) Closes #254 Signed-off-by: Federico Cucino <24813315+fcucino@users.noreply.github.com> --- lib/keycloak.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/keycloak.d.ts b/lib/keycloak.d.ts index d8e549d..06f15c3 100644 --- a/lib/keycloak.d.ts +++ b/lib/keycloak.d.ts @@ -366,7 +366,7 @@ export interface KeycloakTokenParsed { auth_time?: number nonce?: string acr?: string - amr?: string + amr?: string[] azp?: string session_state?: string realm_access?: KeycloakRoles