PageSourceSearch

https://bitprep.ai/_next/static/chunks/6538.c9ce1864cc2a6670.js

js bitprep.ai collected 2026-10-05 13:29:32 UTC 1,174 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6538],{16538:function(e,t,n){async function o(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=c(),o=t.headers?{...t.headers}:{};return n&&(o.Authorization="Bearer ".concat(n)),fetch(e,{...t,headers:o})}function r(e){let{access_token:t,refresh_token:n}=e;t&&localStorage.setItem("access_token",t),n&&localStorage.setItem("refresh_token",n)}function c(){return localStorage.getItem("access_token")}function s(){return localStorage.getItem("refresh_token")}function a(){localStorage.removeItem("access_token"),localStorage.removeItem("refresh_token")}async function u(){let e=s();if(!e)return null;let t=await fetch("/admin/auth/refresh",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({refresh_token:e})});if(!t.ok)return null;let n=await t.json();return n.access_token?(r({access_token:n.access_token}),n.access_token):null}n.r(t),n.d(t,{authFetch:function(){return o},getAccessToken:function(){return c},getRefreshToken:function(){return s},refreshAccessToken:function(){return u},removeTokens:function(){return a},setTokens:function(){return r}})}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.