Skip to content

Commit 3d35a79

Browse files
committed
fix(login): fix hardocded extension id in redirection url
1 parent dc4496a commit 3d35a79

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

src/settings/traktv.api.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ export const Production = {
1111
ID: '4f2745eb6a58949bd35f4948b70d0dd7184462841052fa11f24d85edc1256a22',
1212
Secret: '322d3d1a6d6d9214a1fc120903c8722b266e7643bd708e437ddbb68f5c737fa2',
1313
TraktEndpoint: 'https://api.trakt.tv',
14-
RedirectionUrl: 'chrome-extension://eiljcfkgmgjbjglhhhnchonnjefhncad/views/options/index.html',
14+
RedirectionUrl: `chrome-extension://${chromeRuntimeId}/views/options/index.html`,
1515
} as const;
1616

1717
export const Staging = {
1818
ID: 'e3fe38d76cbd787f74ada8f043a69dfc8b20a86569e51ee125bf0c084d6c553c',
1919
Secret: '14780b6623c64337f442b06603a5484b9422c4fe3ced7e109a1e0f795a708752',
2020
TraktEndpoint: 'https://api-staging.trakt.tv',
21-
RedirectionUrl: 'chrome-extension://eiljcfkgmgjbjglhhhnchonnjefhncad/views/options/index.html',
21+
RedirectionUrl: `chrome-extension://${chromeRuntimeId}/views/options/index.html`,
2222
} as const;
2323

2424
const client = Production;

src/stores/data/show.store.ts

-1
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,6 @@ export const useShowStore = defineStore('data.show', () => {
284284
const initShowStore = () => {
285285
watch(user, () => {
286286
clearProgressState();
287-
console.info('user change, clearing state', user.value, showsWatchedProgress);
288287
});
289288
};
290289

src/stores/settings/use-logout.ts

-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ export const useLogout = () => {
1212
const { syncRestoreAuth } = useAuthSettingsStore();
1313

1414
const loadUser = async (account: string) => {
15-
console.info('loadUser', account);
1615
const auth = await syncRestoreAuth(account);
1716
return TraktService.importAuthentication(auth);
1817
};

0 commit comments

Comments
 (0)