Skip to content

Commit

Permalink
jwt-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MattGalvis committed Sep 8, 2023
1 parent aa74caa commit 57928f8
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion packages/core/src/auth/context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ export const useUserContext = () => useContext(UserContext)
export const UserProvider = ({ children }: { children: ReactNode }) => {
const [user, setUser] = useState<IUser | null>(null)
const token = Cookies.get(COOKIE_NAME)
console.log('!!!', token)

const {
isLoading,
Expand Down
1 change: 0 additions & 1 deletion packages/core/src/auth/login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ export function useLogin({
* Handles login success with the auth token in response
*/
async function handleLoginSuccess(response: AxiosResponse<ILoginResponse | ILoginMfaResponse>) {
console.log('!!!response.data', response.data)
Cookies.set(COOKIE_NAME, (response.data as ILoginResponse).token, {
secure: process.env.NODE_ENV === 'production',
})
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/constants/cookie.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const COOKIE_NAME = 'jwt'
export const COOKIE_NAME = 'Authorization'

0 comments on commit 57928f8

Please sign in to comment.