Skip to content

Commit

Permalink
🚑 [hotfix] : requestPermission alert 로그인 페이지
Browse files Browse the repository at this point in the history
  • Loading branch information
nayoung3669 committed May 23, 2024
1 parent ca58641 commit 61da8ab
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/app/(route)/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,16 @@ import Image from 'next/image'
import loginImage from 'public/illustration/common/login/login.png'
import { LOGIN_PAGE } from '@/_constants/login'
import kakaoImage from 'public/illustration/common/login/kakao.png'
import { useEffect } from 'react'
import useFirebasePush from '@/_pwa/useFirebasePush'

export default function Login() {
const { requestPushPermission } = useFirebasePush()

useEffect(() => {
requestPushPermission()
}, [])

const handleLogin = () => {
if (typeof window !== 'undefined') {
window.location.href = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.NEXT_PUBLIC_KEY}&redirect_uri=${process.env.NEXT_PUBLIC_REDIRECT_URL}`
Expand Down

0 comments on commit 61da8ab

Please sign in to comment.