Skip to content

Commit

Permalink
fix: 로그인 관련 리다이렉트 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
cobocho committed Jul 27, 2024
1 parent 9b04b10 commit 6ce4c0c
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion apps/extension/content.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,8 @@ function VookContentScript() {
) {
await setStorage('vook-access', event.data.access)
await setStorage('vook-refresh', event.data.refresh)
await setStorage('vook-login', true)

console.log(event.data)

queryClient.setQueryData(['access'], event.data.access)
queryClient.setQueryData(['refresh'], event.data.refresh)
Expand Down
10 changes: 10 additions & 0 deletions apps/web/src/app/(landing)/page.tsx
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
'use client'

import React from 'react'
import Cookies from 'js-cookie'
import { useRouter } from 'next/navigation'

import { HeroBanner } from './_components/HeroBanner'
import { IconSection } from './_components/IconSection'
import { DetailBanner } from './_components/DetailBanner'
import { RedirectBanner } from './_components/RedirectBanner'

const LandingPage = () => {
const router = useRouter()

if (Cookies.get('access')) {
router.push('/workspace')
}

return (
<div style={{ width: '100%' }}>
<HeroBanner />
Expand Down

0 comments on commit 6ce4c0c

Please sign in to comment.