Skip to content

Conversation

@denysoblohin-okta
Copy link
Contributor

@denysoblohin-okta denysoblohin-okta commented Oct 16, 2023

Description:

Use client from okta/okta-auth-js#1476

Size comparison:
Before:

js/okta-sign-in.next.js (1.47 MiB)
js/okta-sign-in.next.no-polyfill.js (1.32 MiB)

After:

js/okta-sign-in.next.js (1.35 MiB)
js/okta-sign-in.next.no-polyfill.js (1.2 MiB)

PR Checklist

Issue:

Reviewers:

Screenshot/Video:

Downstream Monolith Build:

include: [
/node_modules\/@okta\/okta-auth-js/,
],
sideEffects: false,
Copy link
Contributor Author

@denysoblohin-okta denysoblohin-okta Oct 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is important for proper tree-shaking

await t.expect(req3Body?.authenticator?.phoneNumber).eql('+1123');
await t.expect(req3Body?.stateHandle).notEql(undefined);

// in gen 2 we re-introspect when clicking return to authenticator,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

router.on('afterError', afterErrorHandler);
if (authClient) {
spyOn(authClient.token, 'getWithoutPrompt').and.callThrough();
spyOn(authClient.token.getWithRedirect, '_setLocation');
Copy link
Contributor Author

@denysoblohin-okta denysoblohin-okta Oct 17, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

_setLocation has been removed in okta/okta-auth-js#1324

@denysoblohin-okta denysoblohin-okta force-pushed the od-test-bundle-idx-lite branch 4 times, most recently from 4c54151 to 79e27c3 Compare October 30, 2023 10:32
@denysoblohin-okta denysoblohin-okta force-pushed the od-test-bundle-idx-lite branch 4 times, most recently from 2d415f4 to 5cf248f Compare October 30, 2023 17:45
AUTHJS_VERSION="7.5.0-ga548153"
use idx as before, but create own lite OktaAuthClient

use 7.5.0-g5555ddd

fix test

fix test

fix test

type fixes

lint fix

fix lint

trigger test

7.5.0-g5ab8355

increase timeout
@denysoblohin-okta denysoblohin-okta changed the title poc: Use lite okta-auth-js client poc: Use minimal okta-auth-js IDX client Nov 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants