Skip to content

Commit

Permalink
jwt-setup
Browse files Browse the repository at this point in the history
  • Loading branch information
MattGalvis committed Sep 8, 2023
1 parent e0797d4 commit aa74caa
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 12 deletions.
5 changes: 0 additions & 5 deletions .changeset/early-fireants-search.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/mighty-emus-wave.md

This file was deleted.

1 change: 0 additions & 1 deletion packages/authentication/modules/user/useUser/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ const useUser = <TUser extends Partial<IUser>>({
cookieName = COOKIE_NAME,
}: IUseUser<TUser> = {}) => {
const token = Cookies.get(cookieName)
console.log('!!!token', token)
const queryClient = useQueryClient()

const { data: user, ...rest } = useQuery({
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/constants/cookie.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export const COOKIE_NAME = 'Authorization'
export const COOKIE_NAME = 'jwt'

0 comments on commit aa74caa

Please sign in to comment.