Skip to content

Commit c6135c9

Browse files
committed
fix: get Token erorr
1 parent 1c3fc68 commit c6135c9

File tree

5 files changed

+5
-7
lines changed

5 files changed

+5
-7
lines changed

apps/web/src/components/PrivatePostLabel/PrivatePostLabel.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@ import { bindClassNames } from '@/lib/styles/bindClassNames'
44

55
const cx = bindClassNames(styles)
66

7-
type Props = {}
8-
9-
function PrivatePostLabel({}: Props) {
7+
function PrivatePostLabel() {
108
return (
119
<div className={cx('block')}>
1210
<LockIcon /> 비공개

apps/web/src/prefetch/getFeedPosts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import graphqlFetch, { GraphqlRequestBody } from '@/lib/graphqlFetch'
55

66
export default async function getFeedPosts({ limit = ENV.defaultPostLimit }: Args) {
77
const headers = {}
8-
const token = getAccessToken()
8+
const token = await getAccessToken()
99
if (token) {
1010
Object.assign(headers, { authorization: `Bearer ${token.value}` })
1111
}

apps/web/src/prefetch/getUserTags.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import graphqlFetch, { GraphqlRequestBody } from '@/lib/graphqlFetch'
55
export default async function getUserTags(username: string) {
66
try {
77
const headers = {}
8-
const token = getAccessToken()
8+
const token = await getAccessToken()
99
if (token) {
1010
Object.assign(headers, { authorization: `Bearer ${token.value}` })
1111
}

apps/web/src/prefetch/getVelogConfig.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import graphqlFetch, { GraphqlRequestBody } from '@/lib/graphqlFetch'
55
export default async function getVelogConfig({ username }: Args) {
66
try {
77
const headers = {}
8-
const token = getAccessToken()
8+
const token = await getAccessToken()
99
if (token) {
1010
Object.assign(headers, { authorization: `Bearer ${token.value}` })
1111
}

apps/web/src/prefetch/getVelogPosts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import graphqlFetch, { GraphqlRequestBody } from '@/lib/graphqlFetch'
55
export default async function getVelogPosts({ username, tag }: GetVelogPostsArgs) {
66
try {
77
const headers = {}
8-
const token = getAccessToken()
8+
const token = await getAccessToken()
99
if (token) {
1010
Object.assign(headers, { authorization: `Bearer ${token.value}` })
1111
}

0 commit comments

Comments
 (0)