Skip to content

Commit 03ed06a

Browse files
committed
fix build errors
1 parent 25f5478 commit 03ed06a

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

openam-ui/openam-ui-js-sdk/src/lib/loginService.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ const successfulAuth = `{
203203
"realm": "/"
204204
}`
205205

206-
const authError = `{"code":401,"reason":"Unauthorized","message":"Authentication Failed"}`
206+
//const authError = `{"code":401,"reason":"Unauthorized","message":"Authentication Failed"}`
207207

208208
const authDataJSON = `{
209209
"authId": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJvdGsiOiJsa21mODI5dHEzbmhraDNyNmVsbGZtYWpybCIsInJlYWxtIjoiZGM9b3BlbmFtLGRjPW9wZW5pZGVudGl0eXBsYXRmb3JtLGRjPW9yZyIsInNlc3Npb25JZCI6IkFRSUM1d00yTFk0U2ZjekloNTRQLTZ1czRod0tSa09ibWFKa251U0p3SUxNYi1VLipBQUpUU1FBQ01ERUFBbE5MQUJNMk56VTVOVEF5T1RrNU5UUXpOemM0T1RZNEFBSlRNUUFBKiJ9.0lYgF063co7bcg_-xbabvrZponm7NMq3s-IeYPaf9Js",

openam-ui/openam-ui-js-sdk/src/lib/userService.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class UserService {
5050
if (import.meta.env.MODE === 'development') {
5151
console.log("error getting user id from session", e)
5252
console.log("fallback to demo user")
53-
return JSON.parse(userUnauthorizedResponse)
53+
return JSON.parse(usersSuccessfulResponse)
5454
} else {
5555
console.log("request error occurred:", e)
5656
}
@@ -178,7 +178,7 @@ const usersSuccessfulResponse = `{
178178
"fullLoginURL": "/openam/UI/Login?realm=%2F"
179179
}`
180180

181-
const userUnauthorizedResponse = `{"code":401,"reason":"Unauthorized","message":"Access Denied"}`
181+
// const userUnauthorizedResponse = `{"code":401,"reason":"Unauthorized","message":"Access Denied"}`
182182

183183
const testUserData = `{
184184
"username": "demo",

0 commit comments

Comments
 (0)