Skip to content

Commit

Permalink
feat(client): fetch get-session-user without checking jwt (#51678)
Browse files Browse the repository at this point in the history
  • Loading branch information
ojeytonwilliams committed Oct 27, 2023
1 parent 941e18d commit f53879b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
4 changes: 0 additions & 4 deletions client/src/redux/cookie-values.js

This file was deleted.

5 changes: 0 additions & 5 deletions client/src/redux/fetch-user-saga.js
Expand Up @@ -6,13 +6,8 @@ import {
fetchUserComplete,
fetchUserError
} from './actions';
import { jwt } from './cookie-values';

function* fetchSessionUser() {
if (!jwt) {
yield put(fetchUserComplete({ user: {}, username: '' }));
return;
}
try {
const {
data: { user = {}, result = '' }
Expand Down

0 comments on commit f53879b

Please sign in to comment.