Skip to content

Commit

Permalink
Fixes update issues for auth-js
Browse files Browse the repository at this point in the history
OKTA-377187
<<<Jenkins Check-In of Tested SHA: 1d11d25 for [email protected]>>>
Artifact: okta-react-native
  • Loading branch information
NikitaAvraimov-okta authored and eng-prod-CI-bot-okta committed Mar 17, 2021
1 parent 0977b9f commit 3305850
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# 1.10.0

### Bug Fixes

- [#103](https://github.com/okta/okta-react-native/pull/103) Fixes hermes engine support

### Other

- [#96](https://github.com/okta/okta-react-native/pull/96) Updates okta-oidc-android dependency to 1.0.17
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
import { NativeModules, Platform, NativeEventEmitter } from 'react-native';
import { assertIssuer, assertClientId, assertRedirectUri } from '@okta/configuration-validation';
import jwt from 'jwt-lite';
import OktaAuth from '@okta/okta-auth-js';
import { OktaAuth } from '@okta/okta-auth-js';
import Url from 'url-parse';
import { version } from './package.json';

Expand Down
10 changes: 6 additions & 4 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,16 @@ const {

import { Platform } from 'react-native';
import { version } from '../package.json';
import OktaAuth from '@okta/okta-auth-js';
import { OktaAuth } from '@okta/okta-auth-js';

let mockSignInOktaAuth = jest.fn();

jest.mock('@okta/okta-auth-js', () => {
return jest.fn().mockImplementation(() => {
return {signIn: mockSignInOktaAuth};
});
return {
OktaAuth: jest.fn().mockImplementation(() => {
return {signIn: mockSignInOktaAuth};
})
};
});

jest.mock('react-native', () => {
Expand Down

0 comments on commit 3305850

Please sign in to comment.