diff --git a/api.http b/api.http index a3ab361..1d69be2 100644 --- a/api.http +++ b/api.http @@ -1,8 +1,7 @@ ### POST http://localhost:3000/api/auth/login/ HTTP/1.1 Content-Type: application/json + { - "id": "devLukman", - "phone": "6287701790942", - "email": "lukman@bip.com" + "phone": "6287701790942" } \ No newline at end of file diff --git a/package.json b/package.json index fc054e1..89d446e 100644 --- a/package.json +++ b/package.json @@ -38,6 +38,7 @@ "echarts-for-react": "^3.0.2", "embla-carousel-autoplay": "^7.1.0", "embla-carousel-react": "^7.1.0", + "iron-session": "^8.0.2", "lodash": "^4.17.21", "moment": "^2.30.1", "next": "14.2.4", diff --git a/src/app/(auth)/verification/page.tsx b/src/app/(auth)/verification/page.tsx index de28044..31b693d 100644 --- a/src/app/(auth)/verification/page.tsx +++ b/src/app/(auth)/verification/page.tsx @@ -1,6 +1,7 @@ import { ViewVerification } from "@/module/auth"; +import { IVerification } from "@/types"; import React from "react"; -export default function Verification() { - return ; +export default function Page() { + return ; } diff --git a/yarn.lock b/yarn.lock index 4d4e163..b8fcbd8 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1072,6 +1072,11 @@ concat-map@0.0.1: resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== +cookie@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" + integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== + create-require@^1.1.0: version "1.1.1" resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" @@ -2081,6 +2086,20 @@ invariant@^2.2.4: dependencies: loose-envify "^1.0.0" +iron-session@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/iron-session/-/iron-session-8.0.2.tgz#9802e080206a8ba41911b53d29ff7de11161d036" + integrity sha512-p4Yf1moQr6gnCcXu5vCaxVKRKDmR9PZcQDfp7ZOgbsSHUsgaNti6OgDB2BdgxC2aS6V/6Hu4O0wYlj92sbdIJg== + dependencies: + cookie "0.6.0" + iron-webcrypto "1.2.1" + uncrypto "0.1.3" + +iron-webcrypto@1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/iron-webcrypto/-/iron-webcrypto-1.2.1.tgz#aa60ff2aa10550630f4c0b11fd2442becdb35a6f" + integrity sha512-feOM6FaSr6rEABp/eDfVseKyTMDt+KGpeB35SkVn9Tyn0CqvVsY3EwI0v5i8nMHyJnzCIQf7nsy3p41TPkJZhg== + is-arguments@^1.1.1: version "1.1.1" resolved "https://registry.yarnpkg.com/is-arguments/-/is-arguments-1.1.1.tgz#15b3f88fda01f2a97fec84ca761a560f123efa9b" @@ -3527,6 +3546,11 @@ unbox-primitive@^1.0.2: has-symbols "^1.0.3" which-boxed-primitive "^1.0.2" +uncrypto@0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/uncrypto/-/uncrypto-0.1.3.tgz#e1288d609226f2d02d8d69ee861fa20d8348ef2b" + integrity sha512-Ql87qFHB3s/De2ClA9e0gsnS6zXG27SkTiSJwjCc9MebbfapQfuPzumMIUMi38ezPZVNFcHI9sUIepeQfw8J8Q== + undici-types@~5.26.4: version "5.26.5" resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617"