Skip to content

Commit 459772d

Browse files
committed
Updating userInfo endpoint
1 parent 6583e90 commit 459772d

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/app/core/user-info/user-info.service.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ export class UserInfoService {
2626
public getUserInfo(options?: UserRecordOptions): Observable<UserInfo> {
2727
return this._http
2828
.get<UserInfo>(
29-
environment.API_WEB +
30-
(options?.publicRecordId ? options.publicRecordId + '/' : '') +
31-
'userInfo.json',
29+
'https://auth.dev.orcid.org/userInfo.json',
3230
{
3331
withCredentials: true,
3432
}

src/app/core/user/user.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ export class UserService {
9595

9696
public getUserStatus(): Observable<boolean> {
9797
return this._http
98-
.get<UserStatus>(environment.API_WEB + 'userStatus.json', {
98+
.get<UserStatus>('https://auth.dev.orcid.org/userInfo.json', {
9999
withCredentials: true,
100100
})
101101
.pipe(map((response) => !!response.loggedIn))

0 commit comments

Comments
 (0)