Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions mock-relying-party-ui-esim/src/pages/UserProfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ function UserProfile() {
let authCode = searchParams.get("code");
let errorCode = searchParams.get("error");
let error_desc = searchParams.get("error_description");
let state = searchParams.get("state");

if (errorCode) {
navigateToLogin(errorCode, error_desc);
return;
}

if (authCode) {
getUserDetails(authCode);
getUserDetails(authCode, state);
} else {
return;
}
Expand All @@ -56,7 +57,7 @@ function UserProfile() {
}, []);

//Handle Login API Integration here
const getUserDetails = async (authCode) => {
const getUserDetails = async (authCode, state) => {
setUserInfo(null);

try {
Expand All @@ -66,6 +67,7 @@ function UserProfile() {

const fetchedUserInfo = await post_fetchUserInfo(
authCode,
state,
client_id,
redirect_uri,
grant_type
Expand Down
Loading