Skip to content

Commit

Permalink
fix auth
Browse files Browse the repository at this point in the history
  • Loading branch information
nikgraf committed Jun 1, 2024
1 parent a34c44b commit d692bbc
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions apps/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"@react-native/assets-registry": "0.75.0-main",
"@tanstack/react-query": "^5.40.0",
"@trpc/client": "^11.0.0-rc.382",
"@trpc/react-query": "^11.0.0-rc.382",
"babel-preset-expo": "~11.0.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
Expand Down
3 changes: 0 additions & 3 deletions apps/app/src/hooks/useLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ type LoginParams = {
};

export const useLogin = () => {
// TODO
return { isPending: true, login: () => {} };

const loginStartMutation = trpc.loginStart.useMutation();
const loginFinishMutation = trpc.loginFinish.useMutation();

Expand Down
3 changes: 0 additions & 3 deletions apps/app/src/hooks/useRegisterAndLogin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@ type RegisterParams = {
};

export const useRegisterAndLogin = () => {
// TODO
return { isPending: true, registerAndLogin: () => {} };

const [isPending, setIsPending] = useState(false);
const registerStartMutation = trpc.registerStart.useMutation();
const registerFinishMutation = trpc.registerFinish.useMutation();
Expand Down
1 change: 0 additions & 1 deletion apps/server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
"dependencies": {
"@prisma/client": "5.14.0",
"@serenity-kit/opaque": "^0.8.4",
"@trpc/react-query": "^10.45.2",
"@trpc/server": "^11.0.0-rc.382",
"cookie": "^0.6.0",
"cookie-parser": "^1.4.6",
Expand Down
2 changes: 1 addition & 1 deletion apps/server/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ const corsOptions: CorsOptions = {
origin:
process.env.NODE_ENV === "production"
? "https://livelist.vercel.app"
: "http://localhost:5173",
: "http://localhost:8081",
credentials: true,
};

Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2007,10 +2007,10 @@
resolved "https://registry.yarnpkg.com/@trpc/client/-/client-11.0.0-rc.382.tgz#0bb2222aaa5cbbb7c8d5c9cdde21572bd148a20e"
integrity sha512-O+MSRed5r8AJJ+j3peZkd/b7WINEkhKaFilRuPH8VQsrlMZToxUzQl9aShPIgnOhhQGxvWqdh2lXwUvrFCea/A==

"@trpc/react-query@^10.45.2":
version "10.45.2"
resolved "https://registry.yarnpkg.com/@trpc/react-query/-/react-query-10.45.2.tgz#22564b370a1fb8920ba3a1554f4149a151039198"
integrity sha512-BAqb9bGZIscroradlNx+Cc9522R+idY3BOSf5z0jHUtkxdMbjeGKxSSMxxu7JzoLqSIEC+LVzL3VvF8sdDWaZQ==
"@trpc/react-query@^11.0.0-rc.382":
version "11.0.0-rc.382"
resolved "https://registry.yarnpkg.com/@trpc/react-query/-/react-query-11.0.0-rc.382.tgz#2ab7c9282d4f9a57b6e25bf601ec532f4fe0979d"
integrity sha512-VlYe+ufYy/hWQFpBEG2MHKsGrGmt2oqqPBO4lHWBpuCcQnzttvsW+LkBkMoy6qZqFcrGyQJC8KQXHO6njmfmZQ==

"@trpc/server@^11.0.0-rc.382":
version "11.0.0-rc.382"
Expand Down

0 comments on commit d692bbc

Please sign in to comment.