8000 keycloak-js: add KeycloakUserInfo interface · Issue #16 · keycloak/keycloak-js · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
keycloak-js: add KeycloakUserInfo interface #16
@tomperr

Description

@tomperr

Area

adapter/javascript

Description

Currently, KeycloakUserInfo interface does not exist, but the code suggests that it should be implemented:

https://github.com/keycloak/keycloak/blob/9186327807477f4ca5c36d0adb6fd7b7f62b9721/js/libs/keycloak-js/dist/keycloak.d.ts#L461-L464

This new interface will then be used for the return value of loadUserInfo, that currently returns an untyped object

https://github.com/keycloak/keycloak/blob/9186327807477f4ca5c36d0adb6fd7b7f62b9721/js/libs/keycloak-js/dist/keycloak.d.ts#L618-L621

Discussion

No response

Motivation

Other methods and attributes have their own interfaces, such as userProfile and loadUserProfile using KeycloakProfile. It should be the same for userInfo and loadUserInfo with KeycloakUserInfo.

Details

Simply implement KeycloakUserInfo interface and add it to userInfo attribute and loadUserInfo method

Metadata

Metadata

Assignees

Labels

help wantedExtra attention is needed

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0