Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import React from "react";
- import ReactDOM from "react-dom";
- import { Provider } from "react-redux";
- import App from "./App";
- import registerServiceWorker from "./registerServiceWorker";
- import store from "./store";
- const Trakt = require('trakt.tv');
- const client_id = "67b2ba6a0a3b2edaf1ea549ca1fa8d007234485efc8f6b136e3b4dea4757e488";
- const client_secret = "27c2efc0b30ddf0d81aae43b3975f6e8980065d62a41d70f25175510fa769175";
- let options = {
- client_id: client_id,
- client_secret: client_secret,
- redirect_uri: "http://localhost:3000/",
- api_url: "https://api.trakt.tv",
- useragent: null,
- pagination: true
- };
- const trakt = new Trakt(options);
- const traktAuthUrl = trakt.get_url();
- window.location.href = traktAuthUrl;
- ReactDOM.render(
- <Provider store={store}>
- <App />
- </Provider>,
- document.getElementById("root")
- );
- registerServiceWorker();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement