Skip to content

Commit

Permalink
Format code with prettier
Browse files Browse the repository at this point in the history
This commit fixes the style issues introduced in 7c17123 according to the output
from prettier.

Details: https://deepsource.io/gh/Jm-Paunlagui/Matrix-Lab-Client/transform/b09695c0-4f19-4be3-bc65-545908188849/
  • Loading branch information
deepsource-autofix[bot] committed Feb 6, 2023
1 parent 7c17123 commit ec3fdc9
Show file tree
Hide file tree
Showing 2 changed files with 521 additions and 501 deletions.
12 changes: 6 additions & 6 deletions client/src/helpers/Auth.js
@@ -1,7 +1,7 @@
import cookie from "js-cookie";
import {importSPKI, jwtVerify} from "jose";
import {MATRIX_RSA_PUBLIC_KEY} from "./Helper";
import {toast} from "react-toastify";
import { importSPKI, jwtVerify } from "jose";
import { MATRIX_RSA_PUBLIC_KEY } from "./Helper";
import { toast } from "react-toastify";

/**
* @description Sets the cookie for the application
Expand All @@ -12,7 +12,7 @@ export const setCookie = (key, value) => {
if (typeof window !== "undefined") {
cookie.set(key, value, {
domain: window.location.hostname,
SameSite:"None",
SameSite: "None",
secure: true,
httpOnly: true,
});
Expand All @@ -27,8 +27,8 @@ export const removeCookie = (key) => {
if (typeof window !== "undefined") {
cookie.remove(key, {
domain: window.location.hostname,
path: '/',
sameSite: 'lax',
path: "/",
sameSite: "lax",
expires: 1,
});
}
Expand Down

0 comments on commit ec3fdc9

Please sign in to comment.