From 4536ba03ea316149d697bb9229260499e9f37e17 Mon Sep 17 00:00:00 2001 From: Shuo Wu Date: Tue, 31 May 2022 11:15:28 -0400 Subject: [PATCH] fix: add missing relatesTo to nextStep - OKTA-496979 (#1224) * fix: add missing relatesTo to nextStep - OKTA-496979 * bump version to 6.5.3 --- CHANGELOG.md | 4 ++++ lib/idx/types/api.ts | 6 +++++- package.json | 2 +- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8616f407..05bd65bb5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 6.5.3 + +- [#1224](https://github.com/okta/okta-auth-js/pull/1224) Fixes missing `relatesTo` type from `NextStep` + ## 6.5.2 ### Fixes diff --git a/lib/idx/types/api.ts b/lib/idx/types/api.ts index da6aa168f..3efd8aa47 100644 --- a/lib/idx/types/api.ts +++ b/lib/idx/types/api.ts @@ -45,7 +45,6 @@ export type Input = { secret?: boolean; required?: boolean; options?: IdxOption[]; - relatesTo?: IdxAuthenticator; mutable?: boolean; visible?: boolean; } @@ -69,6 +68,11 @@ export type NextStep = { action?: (params?: IdxActionParams) => Promise; idp?: IdpConfig; href?: string; + relatesTo?: { + type?: string; + value: IdxAuthenticator; + }; + refresh?: number; } export enum IdxFeature { diff --git a/package.json b/package.json index 09c37deea..59b7dac06 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "private": true, "name": "@okta/okta-auth-js", "description": "The Okta Auth SDK", - "version": "6.5.2", + "version": "6.5.3", "homepage": "https://github.com/okta/okta-auth-js", "license": "Apache-2.0", "main": "build/cjs/index.js",