Skip to content

Commit 5ff2cf9

Browse files
committed
refactor(sara.js): rename useSaraToken to readSaraToken for clarity
1 parent 45d3d3b commit 5ff2cf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/clients/sara.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const {
66
VITE_SARA_GUARD_NAME: saraGuardName,
77
} = import.meta.env;
88

9-
const useSaraToken = (request) => {
9+
const readSaraToken = (request) => {
1010
const saraToken = localStorage.getItem(saraTokenName);
1111
const guardToken = localStorage.getItem(saraGuardName);
1212
if (!saraToken || !guardToken) return;
@@ -40,7 +40,7 @@ const client = ky.create({
4040
prefixUrl: baseUrl,
4141
hooks: {
4242
beforeRequest: [
43-
useSaraToken,
43+
readSaraToken,
4444
],
4545
afterResponse: [
4646
refreshSaraToken,

0 commit comments

Comments
 (0)