feat: encode pazuz_operatoridentifier header

chore: rename cookies to fit a standard
fix: small fixes
This commit is contained in:
Sérgio Salgado 2021-09-22 21:23:22 +01:00
parent 990ab32583
commit 5b13ffe3d9
14 changed files with 41 additions and 19 deletions

View file

@ -1,5 +1,6 @@
import { useMutation } from '@apollo/react-hooks'
import { makeStyles } from '@material-ui/core/styles'
import base64 from 'base-64'
import { Field, Form, Formik } from 'formik'
import gql from 'graphql-tag'
import React from 'react'
@ -56,7 +57,7 @@ const LoginState = ({ state, dispatch }) => {
},
context: {
headers: {
email: username
pazuz_operatoridentifier: base64.encode(username)
}
}
})