Skip to content

keycloak-js register broken: createRegisterUrl not awaited #33645

@anst270125

Description

@anst270125

Before reporting an issue

  • I have read and understood the above terms for submitting issues, and I understand that my issue may be closed without action if I do not follow them.

Area

adapter/javascript

Describe the bug

Registering using keycloak-js is broken because of incorrect redirectUri after updating to v26. The docs clearly indicate to await createRegisterUrl function but keycloak-js doesn't.

Definition:

kc.createRegisterUrl = async function(options) {

Usage:
window.location.assign(kc.createRegisterUrl(options));

Version

26.0.0

Regression

  • The issue is a regression

Expected behavior

Register should work

Actual behavior

Register doesn't work

How to Reproduce?

Register

Anything else?

No response

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions