Skip to content

Commit

Permalink
use PR v2
Browse files Browse the repository at this point in the history
  • Loading branch information
denysoblohin-okta committed Nov 16, 2023
1 parent b66e429 commit 7d0e238
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ set -eo pipefail
# Can be used to run a canary build against a beta AuthJS version that has been published to artifactory.
# This is available from the "downstream artifact" menu on any okta-auth-js build in Bacon.
# DO NOT MERGE ANY CHANGES TO THIS LINE!!
export AUTHJS_VERSION="7.5.0-gc6cb617"
export AUTHJS_VERSION="7.5.0-ga22be58"
export INTERNAL_REGISTRY="${ARTIFACTORY_URL}/api/npm/npm-okta-release"
export PUBLIC_REGISTRY="https://registry.yarnpkg.com"

Expand Down
4 changes: 2 additions & 2 deletions src/v3/src/OktaSignIn/authClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,14 @@ import {
createIdxOptionsConstructor,
createIdxStorageManager,
createIdxTransactionManager,
createOktaAuthBaseIdx,
createMinimalOktaAuthIdx,
} from '@okta/okta-auth-js';

const OptionsConstructor = createIdxOptionsConstructor();
const StorageManager = createIdxStorageManager();
const TransactionManager = createIdxTransactionManager();

const OktaAuthClient = createOktaAuthBaseIdx(
const OktaAuthClient = createMinimalOktaAuthIdx(
StorageManager, OptionsConstructor, TransactionManager,
);

Expand Down
4 changes: 2 additions & 2 deletions src/v3/src/types/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* See the License for the specific language governing permissions and limitations under the License.
*/

import { OktaAuthBaseIdxInterface, Tokens } from '@okta/okta-auth-js';
import { MinimalOktaAuthIdxInterface, Tokens } from '@okta/okta-auth-js';

import {
HooksAPI,
Expand All @@ -28,7 +28,7 @@ export interface OktaSignInAPI extends HooksAPI, RouterEventsAPI {
readonly options: Pick<WidgetOptions, 'brandName'>;

// Gen3 supports only IDX
authClient: OktaAuthBaseIdxInterface;
authClient: MinimalOktaAuthIdxInterface;
show(): void;
hide(): void;
remove(): void;
Expand Down
4 changes: 2 additions & 2 deletions src/v3/src/types/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,15 +15,15 @@ import {
IdxMessage,
IdxTransaction,
OAuthError,
OktaAuthBaseIdxInterface,
MinimalOktaAuthIdxInterface,
} from '@okta/okta-auth-js';
import { MutableRef, StateUpdater } from 'preact/hooks';

import { FormBag, LanguageDirection, UISchemaLayoutType } from './schema';
import { WidgetProps } from './widget';

export type IWidgetContext = {
authClient: OktaAuthBaseIdxInterface;
authClient: MinimalOktaAuthIdxInterface;
widgetProps: WidgetProps;
message: IdxMessage | undefined;
setMessage: StateUpdater<IdxMessage | undefined>;
Expand Down

0 comments on commit 7d0e238

Please sign in to comment.