Skip to content

Commit

Permalink
happyheaders added
Browse files Browse the repository at this point in the history
  • Loading branch information
chemokita13 authored May 29, 2024
1 parent 5988a31 commit b4801bf
Show file tree
Hide file tree
Showing 2 changed files with 447 additions and 7 deletions.
10 changes: 3 additions & 7 deletions src/BeFake/BeFake.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import { Post } from './modules/Post';
import { BeFakeResponse } from './types/BeFakeResponse';
import { tokenObj } from 'src/types/types';
import { sendMail } from 'src/Resend/sendMail';
import { getHeaders } from './headers';

export default class BeFake {
//* Types
Expand Down Expand Up @@ -73,9 +74,7 @@ export default class BeFake {
"x-firebase-locale": "en",
"x-firebase-gmpid": "1:405768487586:ios:28c4df089ca92b89",
"bereal-app-version-code": "14549",
"bereal-signature": this.sign,
"bereal-device-id": "937v3jb942b0h6u9",
"bereal-timezone": "Europe/Paris",
...getHeaders()
}

const firstResponse = await axios.post(firstUrl, firstData, {
Expand Down Expand Up @@ -462,10 +461,7 @@ export default class BeFake {
headers: {
Authorization: 'Bearer ' + this.token,
"bereal-app-version-code": "14549",
"bereal-signature":
this.sign,
"bereal-timezone": "Europe/Paris",
"bereal-device-id": "937v3jb942b0h6u9",
...getHeaders()
},
data: data,
params: params,
Expand Down
Loading

0 comments on commit b4801bf

Please sign in to comment.