Skip to content

Commit 9e7d3b1

Browse files
committed
fix: change tc-auth-lib to @topcoder-platform/tc-auth-lib
1 parent 7461f82 commit 9e7d3b1

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@
151151
"remarkable": "^1.7.4",
152152
"sanitize-html": "^1.27.4",
153153
"svg-react-loader": "^0.4.5",
154-
"tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
154+
"@topcoder-platform/tc-auth-lib": "topcoder-platform/tc-auth-lib#1.0.4",
155155
"tc-ui": "git+https://github.com/appirio-tech/tc-ui.git#feature/connectv2",
156156
"tlds": "^1.191.0",
157157
"topcoder-react-utils": "0.0.39",

src/actions/loadUser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import {
1717
ROLE_PROGRAM_MANAGER,
1818
ROLE_PRESALES, ROLE_PROJECT_MANAGER, ROLE_SOLUTION_ARCHITECT
1919
} from '../config/constants'
20-
import { getFreshToken, configureConnector, decodeToken } from 'tc-auth-lib'
20+
import { getFreshToken, configureConnector, decodeToken } from '@topcoder-platform/tc-auth-lib'
2121
import { getUserProfile, getCredential } from '../api/users'
2222
import { fetchGroups } from '../api/groups'
2323
import { getOrgConfig } from '../api/orgConfig'

src/api/requestInterceptor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios'
22
import store from '../config/store'
3-
import { getFreshToken, isTokenExpired } from 'tc-auth-lib'
3+
import { getFreshToken, isTokenExpired } from '@topcoder-platform/tc-auth-lib'
44

55
export const getToken = () => {
66
return new Promise((resolve, reject) => {

src/components/AuthenticatedComponent.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react'
22
import { withRouter } from 'react-router-dom'
3-
import { getFreshToken } from 'tc-auth-lib'
3+
import { getFreshToken } from '@topcoder-platform/tc-auth-lib'
44
import { ACCOUNTS_APP_LOGIN_URL } from '../config/constants'
55

66
export function requiresAuthentication(Component) {

src/routes.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import LoadingIndicator from './components/LoadingIndicator/LoadingIndicator'
1919
import OrganizationPage from './components/SpecialPage/OrganizationPage'
2020
import {ACCOUNTS_APP_LOGIN_URL, PROJECT_FEED_TYPE_PRIMARY, PROJECT_FEED_TYPE_MESSAGES } from './config/constants'
2121
import { getTopic } from './api/messages'
22-
import { getFreshToken } from 'tc-auth-lib'
22+
import { getFreshToken } from '@topcoder-platform/tc-auth-lib'
2323
import { scrollToHash } from './components/ScrollToAnchors.jsx'
2424

2525
import { TCEmitter } from './helpers'

0 commit comments

Comments
 (0)