mirror of
https://github.com/p-stream/backend.git
synced 2026-01-11 20:10:33 +00:00
14 lines
329 B
TypeScript
14 lines
329 B
TypeScript
import Trakt from 'trakt.tv';
|
|
const traktKeys = useRuntimeConfig().trakt;
|
|
|
|
if (!traktKeys) {
|
|
throw new Error('Missing TraktKeys info ERROR: ' + JSON.stringify(traktKeys));
|
|
}
|
|
|
|
const options = {
|
|
client_id: traktKeys.clientId,
|
|
client_secret: traktKeys.clientSecret,
|
|
};
|
|
|
|
const trakt = new Trakt(options);
|
|
export default trakt;
|