Skip to content

Commit de75eb7

Browse files
fix: wrong protocol and url path (#588)
1 parent b3f6f03 commit de75eb7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/common/src/services/JWPEntitlementService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default class JWPEntitlementService {
1414
getJWPMediaToken = async (configId: string = '', mediaId: string) => {
1515
try {
1616
const data = await this.apiService.get<SignedMediaResponse>(
17-
'v2/items/jw-media/token',
17+
'/v2/items/jw-media/token',
1818
{
1919
withAuthentication: true,
2020
},

packages/common/src/services/integrations/jwp/JWPAPIService.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ export default class JWPAPIService {
3434
this.useSandboxEnv = useSandboxEnv;
3535
};
3636

37-
private getBaseUrl = () => (this.useSandboxEnv ? 'https://staging-sims.jwplayer.com' : 'http://sims.jwplayer.com');
37+
private getBaseUrl = () => (this.useSandboxEnv ? 'https://staging-sims.jwplayer.com' : 'https://sims.jwplayer.com');
3838

3939
setToken = (token: string, refreshToken = '', expires: number) => {
4040
return this.storageService.setItem(INPLAYER_TOKEN_KEY, JSON.stringify({ token, refreshToken, expires }), false);

0 commit comments

Comments
 (0)