<commit_before>import RestClient from 'react-native-rest-client';
import Config from '../constants/Config';

export default class KortAPI extends RestClient {
    constructor() {
    super(Config.API_URL);
  }

  verifyUser(tokenId) {
    return this.POST(Config.GOOGLE_VERIFY, { tokenId });
  }
 
}<commit_msg>fixed #2, auth to user info<commit_after>import RestClient from 'react-native-rest-client';
import Config from '../constants/Config';

export default class KortAPI extends RestClient {

    constructor(authToken) {
    super(Config.API_URL, {
      headers: {
        Authorization: `${authToken}`
      },
      simulatedDelay: 2000
    });
  }

  verifyUser(tokenId) {
    return this.POST(Config.GOOGLE_VERIFY, { tokenId });
  }

  getUserinfo(userId) {
    console.log(`${Config.USER_INFO}/${userId}`);
    return this.GET(`${Config.USER_INFO}/${userId}`);
  }
 
}
{'fraction_non_alphanumeric': 0.1410693970420933, 'fraction_numerical': 0.005688282138794084, 'mean_word_length': 3.6560846560846563, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6851168', 'n_tokens_mistral': 286, 'n_tokens_neox': 281, 'n_words': 54}