Skip to content

Commit

Permalink
Merge branch 'hotfix' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KANGYONGSU23 committed Apr 4, 2024
2 parents ea58b61 + 0a57209 commit 7452ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/apis/auth/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import { AuthCode, IAuthorizationResponse, SendAuthCodeType } from "./type";
const router = "/auth";

export const useReissueToken = async (refresh_token: string) => {
const response = await axios.put<IAuthorizationResponse>(
`${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform_type=WEB`,
const response = await axios.put<IAuthorizationResponse>(
`${process.env.NEXT_PUBLIC_BASE_URL}${router}/reissue?platform-type=WEB`,
null,
{
headers: {
Expand Down
2 changes: 2 additions & 0 deletions src/apis/axios.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ instance.interceptors.response.use(
const accessExpired = new Date(res.access_expires_at);
const refreshExpired = new Date(res.refresh_expires_at);
cookies.set("access_token", res.access_token, {
path: '/',
expires: accessExpired,
});
cookies.set("refresh_token", res.refresh_token, {
path: '/',
expires: refreshExpired,
});
if (config!.headers) {
Expand Down

0 comments on commit 7452ae8

Please sign in to comment.