Skip to content

Commit

Permalink
fix: typo in refresh token
Browse files Browse the repository at this point in the history
  • Loading branch information
anshuman852 committed May 28, 2023
1 parent ce8bbc4 commit b8497e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion utils/refreshToken.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import fetch from "node-fetch";
import fs from "fs";
import { getUserToken } from "./getUserToken.js";
const pwd = process.cwd();
var options = {
method: "POST",
headers: {
Expand Down Expand Up @@ -32,7 +33,7 @@ export default async function genNewAccessToken() {
if (res["authToken"]) {
userDataJiotv["authToken"] = res.authToken;
fs["writeFileSync"](
"./tokenData.jiotv",
pwd+"/data/tokenData.jiotv",
JSON["stringify"](userDataJiotv)
);
} else {
Expand Down

0 comments on commit b8497e6

Please sign in to comment.