Skip to content

Commit b7294f6

Browse files
authored
Merge pull request #102 from Kledal/patch-1
Update AuthorizationJWT.md
2 parents 17e7892 + ddd3c28 commit b7294f6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/AuthorizationJWT.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ reduxApi({
1515
information: {
1616
url: "/api/information",
1717

18-
// Prevent Anauthorized request
18+
// Prevent Unauthorized request
1919
prefetch: [
2020
// Step1
2121
function ({actions, dispatch}, cb) {
@@ -27,7 +27,7 @@ reduxApi({
2727
// If Step1 finished successuly check auth state
2828
const { user: { data: { auth }}} = getState();
2929
// if user authorized allow this query
30-
auth ? cb() : cb(new Error("Anauthorized"));
30+
auth ? cb() : cb(new Error("Unauthorized"));
3131
}
3232
]
3333
}

0 commit comments

Comments
 (0)