Skip to content

Commit

Permalink
fix: get value from cookie store
Browse files Browse the repository at this point in the history
  • Loading branch information
akicool committed Jan 24, 2025
1 parent 44d3087 commit c4e5228
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/getToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { cookies } from "next/headers";

export const getToken = async () => {
const cookieStore = await cookies();
const token = cookieStore.get("token")?.value;
const token = cookieStore.get("admin")?.value;

return token;
};

0 comments on commit c4e5228

Please sign in to comment.