Skip to content

Commit

Permalink
chore: legacy_id
Browse files Browse the repository at this point in the history
  • Loading branch information
jimhunty committed Jun 28, 2023
1 parent e2bdb8e commit e97f8ae
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion projects/Mallard/src/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,9 @@ const handleIdStatus = (attempt: AnyAttempt<IdentityAuthData>) =>

// This legacy id correct? Need to ask Mahesh
const handleOktaStatus = (attempt: AnyAttempt<OktaAuthData>) =>
logUserId(isValid(attempt) ? attempt.data.userDetails.id : null);
logUserId(
isValid(attempt) ? attempt.data.userDetails.legacy_identity_id : null,
);

const App = () => {
useEffect(() => {
Expand Down
2 changes: 1 addition & 1 deletion projects/Mallard/src/authentication/services/okta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Platform } from 'react-native';
import { errorService } from 'src/services/errors';

type OktaUser = {
id: string;
legacy_identity_id: string;
preferred_username: string;
};

Expand Down

0 comments on commit e97f8ae

Please sign in to comment.