Skip to content

Commit eb2f569

Browse files
committed
Update session_jwt on embed login
1 parent 021f761 commit eb2f569

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/src/components/common/Auth.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { Button, Input, Box, VStack, Image, CloseButton, HStack, Text, Progress
33
import { Select, CreatableSelect } from "chakra-react-select";
44
import { login } from '../../state/auth/reducer'
55
import { dispatch, logoutState, resetState } from '../../state/dispatch'
6-
import {auth, auth as authModule} from '../../app/api'
6+
import {auth, auth as authModule, setAxiosJwt} from '../../app/api'
77
import { useSelector } from 'react-redux';
88
import logo from '../../assets/img/logo.svg'
99
import { BsLightbulbFill, BsArrowRight } from "react-icons/bs";
@@ -198,6 +198,7 @@ const Auth = () => {
198198
profile_id,
199199
email,
200200
}))
201+
setAxiosJwt(session_jwt)
201202
dispatch(setCurrentEmail(email))
202203
return
203204
} catch (error) {

0 commit comments

Comments
 (0)