diff --git a/src/components/AuthenticationFlow/EmailLoginForm.tsx b/src/components/AuthenticationFlow/EmailLoginForm.tsx index e1ae7f15b7..8a3b908273 100644 --- a/src/components/AuthenticationFlow/EmailLoginForm.tsx +++ b/src/components/AuthenticationFlow/EmailLoginForm.tsx @@ -1,9 +1,9 @@ import Cookies from 'js-cookie'; import type { FunctionComponent } from 'preact'; import { useState } from 'preact/hooks'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; import Spinner from '../Spinner'; import { httpPost } from '../../lib/http'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; const EmailLoginForm: FunctionComponent<{}> = () => { const [email, setEmail] = useState(''); diff --git a/src/components/AuthenticationFlow/GitHubButton.tsx b/src/components/AuthenticationFlow/GitHubButton.tsx index b95a958eca..7cf29065f8 100644 --- a/src/components/AuthenticationFlow/GitHubButton.tsx +++ b/src/components/AuthenticationFlow/GitHubButton.tsx @@ -2,8 +2,8 @@ import { useEffect, useState } from 'preact/hooks'; import GitHubIcon from '../../icons/github.svg'; import SpinnerIcon from '../../icons/spinner.svg'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; import Cookies from 'js-cookie'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; type GitHubButtonProps = {}; diff --git a/src/components/AuthenticationFlow/GoogleButton.tsx b/src/components/AuthenticationFlow/GoogleButton.tsx index 002b26a295..993def8007 100644 --- a/src/components/AuthenticationFlow/GoogleButton.tsx +++ b/src/components/AuthenticationFlow/GoogleButton.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'preact/hooks'; import Cookies from 'js-cookie'; import GoogleIcon from '../../icons/google.svg'; import SpinnerIcon from '../../icons/spinner.svg'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; type GoogleButtonProps = {}; diff --git a/src/components/AuthenticationFlow/ResetPasswordForm.tsx b/src/components/AuthenticationFlow/ResetPasswordForm.tsx index d512131a3a..8ebbcf769a 100644 --- a/src/components/AuthenticationFlow/ResetPasswordForm.tsx +++ b/src/components/AuthenticationFlow/ResetPasswordForm.tsx @@ -2,7 +2,7 @@ import { useEffect, useState } from 'preact/hooks'; import Spinner from '../Spinner'; import { httpPost } from '../../lib/http'; import Cookies from 'js-cookie'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; export default function ResetPasswordForm() { const [code, setCode] = useState(''); diff --git a/src/components/AuthenticationFlow/TriggerVerifyAccount.tsx b/src/components/AuthenticationFlow/TriggerVerifyAccount.tsx index 251a3827ab..0979152eab 100644 --- a/src/components/AuthenticationFlow/TriggerVerifyAccount.tsx +++ b/src/components/AuthenticationFlow/TriggerVerifyAccount.tsx @@ -3,7 +3,7 @@ import ErrorIcon from '../../icons/error.svg'; import { useEffect, useState } from 'preact/hooks'; import Cookies from 'js-cookie'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; export function TriggerVerifyAccount() { const [isLoading, setIsLoading] = useState(true); diff --git a/src/components/Authenticator/authenticator.ts b/src/components/Authenticator/authenticator.ts index 76f9b24bb5..2de9a1d5d9 100644 --- a/src/components/Authenticator/authenticator.ts +++ b/src/components/Authenticator/authenticator.ts @@ -1,5 +1,5 @@ import Cookies from 'js-cookie'; -import { TOKEN_COOKIE_NAME } from '../../lib/constants'; +import {TOKEN_COOKIE_NAME} from "../../lib/jwt"; function easeInElement(el: Element) { el.classList.add('opacity-0', 'transition-opacity', 'duration-300'); diff --git a/src/components/Navigation/Navigation.astro b/src/components/Navigation/Navigation.astro index 66317528ee..1e9cd4f227 100644 --- a/src/components/Navigation/Navigation.astro +++ b/src/components/Navigation/Navigation.astro @@ -91,11 +91,6 @@ import AccountDropdown from './AccountDropdown.astro'; -