mirror of
https://github.com/sasjs/server.git
synced 2026-01-16 10:20:05 +00:00
chore: lint fix
This commit is contained in:
@@ -10,15 +10,13 @@ const getAuthCode = async (credentials: any) =>
|
|||||||
axios.post('/SASjsApi/auth/authorize', credentials).then((res) => res.data)
|
axios.post('/SASjsApi/auth/authorize', credentials).then((res) => res.data)
|
||||||
|
|
||||||
const login = async (payload: { username: string; password: string }) =>
|
const login = async (payload: { username: string; password: string }) =>
|
||||||
axios
|
axios.get('/form').then((res1) =>
|
||||||
.get('/form')
|
axios
|
||||||
.then((res1) =>
|
.post('/login', payload, {
|
||||||
axios
|
headers: { 'csrf-token': res1.data.csrfToken }
|
||||||
.post('/login', payload, {
|
})
|
||||||
headers: { 'csrf-token': res1.data.csrfToken }
|
.then((res2) => res2.data)
|
||||||
})
|
)
|
||||||
.then((res2) => res2.data)
|
|
||||||
)
|
|
||||||
|
|
||||||
const Login = ({ getCodeOnly }: any) => {
|
const Login = ({ getCodeOnly }: any) => {
|
||||||
const location = useLocation()
|
const location = useLocation()
|
||||||
|
|||||||
Reference in New Issue
Block a user