Skip to content

Commit

Permalink
Merge pull request #81 from TripInfoWeb/dev_auth
Browse files Browse the repository at this point in the history
"NEXT_PUBLIC" 부분 제거
  • Loading branch information
ssssksss authored Jun 29, 2024
2 parents a78fe23 + 4f28ee1 commit 1453602
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/auth/signin/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function page() {
className={
"relative mb-[0.75rem] flex h-[2.875rem] w-full items-center justify-center rounded-xl bg-[#FEE500]"
}
href={`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.NEXT_PUBLIC_KAKAO_REST_API_KEY}&redirect_uri=${process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URL}&prompt=login`}
href={`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.KAKAO_REST_API_KEY}&redirect_uri=${process.env.KAKAO_REDIRECT_URL}&prompt=login`}
>
<div className="absolute left-[1rem] top-[50%] aspect-square w-[1rem] translate-y-[-50%]">
<Image
Expand All @@ -56,7 +56,7 @@ export default function page() {
className={
"relative mb-[3rem] h-[2.875rem] w-full rounded-xl outline outline-[1px] outline-offset-[-1px] outline-[#D9D9D9] items-center justify-center flex"
}
href={`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=${process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}&redirect_uri=${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URL}&scope=email profile&prompt=select_account`}
href={`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=${process.env.GOOGLE_CLIENT_ID}&redirect_uri=${process.env.GOOGLE_REDIRECT_URL}&scope=email profile&prompt=select_account`}
>
<div className="absolute left-[1rem] top-[50%] aspect-square w-[1rem] translate-y-[-50%]">
<Image
Expand Down
4 changes: 2 additions & 2 deletions src/app/auth/signup/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function page() {
className={
"relative mb-[0.75rem] flex h-[2.875rem] w-full items-center justify-center rounded-xl bg-[#FEE500]"
}
href={`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.NEXT_PUBLIC_KAKAO_REST_API_KEY}&redirect_uri=${process.env.NEXT_PUBLIC_KAKAO_REDIRECT_URL}&prompt=login`}
href={`https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${process.env.KAKAO_REST_API_KEY}&redirect_uri=${process.env.KAKAO_REDIRECT_URL}&prompt=login`}
>
<div className="absolute left-[1rem] top-[50%] aspect-square w-[1rem] translate-y-[-50%]">
<Image
Expand All @@ -55,7 +55,7 @@ export default function page() {
className={
"relative mb-[3rem] flex h-[2.875rem] w-full items-center justify-center rounded-xl outline outline-[1px] outline-offset-[-1px] outline-[#D9D9D9]"
}
href={`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=${process.env.NEXT_PUBLIC_GOOGLE_CLIENT_ID}&redirect_uri=${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URL}&scope=email profile&prompt=select_account`}
href={`https://accounts.google.com/o/oauth2/v2/auth?response_type=code&client_id=${process.env.GOOGLE_CLIENT_ID}&redirect_uri=${process.env.GOOGLE_REDIRECT_URL}&scope=email profile&prompt=select_account`}
>
<div className="absolute left-[1rem] top-[50%] aspect-square w-[1rem] translate-y-[-50%]">
<Image
Expand Down
4 changes: 2 additions & 2 deletions src/components/meetings/modal/GatheringPlaceModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ const GatheringPlaceModal = (props: IGatheringPlaceModalProps) => {
`https://dapi.kakao.com/v2/local/search/keyword.json?query=${keyword}`,
{
headers: {
Authorization: `KakaoAK ${process.env.NEXT_PUBLIC_KAKAO_REST_API_KEY}`,
Authorization: `KakaoAK ${process.env.KAKAO_REST_API_KEY}`,
},
},
);
Expand All @@ -99,7 +99,7 @@ const GatheringPlaceModal = (props: IGatheringPlaceModalProps) => {
`https://dapi.kakao.com/v2/local/search/address.json?query=${address}`,
{
headers: {
Authorization: `KakaoAK ${process.env.NEXT_PUBLIC_KAKAO_REST_API_KEY}`,
Authorization: `KakaoAK ${process.env.KAKAO_REST_API_KEY}`,
},
},
);
Expand Down

0 comments on commit 1453602

Please sign in to comment.