{"id":38359,"date":"2023-09-19T10:06:47","date_gmt":"2023-01-30T01:47:53","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/"},"modified":"2024-05-04T00:28:28","modified_gmt":"2024-05-03T16:28:28","slug":"%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/","title":{"rendered":"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1"},"content":{"rendered":"<h1>\u9996\u5148<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Next.js \u306bCognito\u306b\u3088\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u306b\u3084\u3063\u305f\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3057\u305f\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\u307b\u307c\u81ea\u5206\u7528\u306e\u30e1\u30e2\u66f8\u304d\u307f\u305f\u3044\u306a\u611f\u3058\u3067\u3001\u4e0d\u5099\u304c\u591a\u3005\u3042\u308a\u307e\u3059\u3001\u7533\u3057\u8a33\u3042\u308a\u307e\u305b\u3093\u3002<\/ul>\n<h1>\u7248\u672c<\/h1>\n<p>\u53ea\u6458\u5f55\u7279\u522b\u91cd\u8981\u7684\u5185\u5bb9\u3002<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">Next.js 13<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">aws-amplify 6.0.5<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">@aws-amplify\/ui-react 6.0.3<\/ul>\n<pre class=\"post-pre\"><code> \"dependencies\": {\r\n    \"@aws-amplify\/ui-react\": \"^6.0.3\",\r\n    \"@types\/node\": \"20.5.9\",\r\n    \"@types\/react\": \"18.2.21\",\r\n    \"aws-amplify\": \"^6.0.5\",\r\n    \"next\": \"13.4.19\",\r\n    \"react\": \"18.2.0\",\r\n  },\r\n<\/code><\/pre>\n<h1>\u6dfb\u52a0\u8eab\u4efd\u9a8c\u8bc1\u529f\u80fd\u7684\u6b65\u9aa4<\/h1>\n<pre class=\"post-pre\"><code>$ amplify init\r\n$ amplify env list\r\n$ amplify env checkout example\r\n$ amplify push\r\n\u2192 Console\u3067\u30ea\u30bd\u30fc\u30b9\u304c\u3067\u304d\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\r\n\u2192 \u8a8d\u8a3c\u6a5f\u80fd\u8ffd\u52a0\r\n$ amplify env list \uff08\u74b0\u5883\u304c\u3042\u3063\u3066\u3044\u308b\u3053\u3068\u3092\u78ba\u8a8d\uff09\r\n$ amplify pull --appId xxxxxxxxxxxx --envName example \uff08Console\u3067\u30b3\u30de\u30f3\u30c9\u3092\u78ba\u8a8d\u3067\u304d\u308b\uff09\r\n\/\/ \u9593\u9055\u3048\u3066\u3057\u307e\u3063\u305f\u5834\u5408\r\n$ amplify env remove example\r\n<\/code><\/pre>\n<h1>\u6240\u9700\u7684IAM\u7528\u6237\u548c\u89d2\u8272<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">IAM User: Amplify\u306e\u64cd\u4f5c\u6a29\u9650\u3092\u6301\u3063\u305f\u30e6\u30fc\u30b6\u30fc<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">IAM Role:<\/ul>\n<\/li>\n<\/ul>\n<p>Backend\u306e\u30c7\u30d7\u30ed\u30a4\u6a29\u9650<br \/>\nCognito\u306e\u64cd\u4f5c\u6a29\u9650<\/p>\n<h1>\u8bf7\u7559\u610f\u4ee5\u4e0b\u4e8b\u9879<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u30b3\u30de\u30f3\u30c9\u306b\u5931\u6557\u3057\u3066\u3082\u3001\u843d\u3061\u7740\u3044\u3066\u30a8\u30e9\u30fc\u6587\u3092\u8aad\u3081\u3070\u89e3\u6c7a\u3067\u304d\u308b\u3053\u3068\u304c\u591a\u3044\u3002<\/ul>\n<\/li>\n<\/ul>\n<p>\u7279\u5b9a\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u524a\u9664\u3059\u308b\u3088\u3046\u6307\u793a\u3057\u3066\u3044\u308b\u3082\u306e\u304c\u3042\u3063\u305f\u3002<br \/>\nConsole\u4e0a\u3067\u3001Amplify Studio settings\u306e Enable OFF\/ON \u3092\u5207\u308a\u66ff\u3048\u308b\u3068\u76f4\u308b\u3082\u306e\u304c\u3042\u3063\u305f\u3002<\/p>\n<p>Console\u4e0a\u3067\u30d5\u30ed\u30f3\u30c8\u30a8\u30f3\u30c9\u306e\u30c7\u30d7\u30ed\u30a4\u8a2d\u5b9a\u3092\u884c\u3046\u6642\u306f\u3001\u5fc5\u305aBackend\u306e\u30c7\u30d7\u30ed\u30a4\u6a29\u9650\u3092\u6301\u305f\u305b\u305f\u30ed\u30fc\u30eb\u3092\u8a2d\u5b9a\u3059\u308b<\/p>\n<h1>\u8bf7\u6ce8\u610f\u7248\u672c\u4e4b\u95f4\u7684\u5dee\u5f02<\/h1>\n<ul class=\"post-ul\">\n<li style=\"list-style-type: none;\">\n<ul class=\"post-ul\">\u691c\u7d22\u3059\u308b\u3068 aws-amplify\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u304c5 \u306e\u5834\u5408\u306e\u8a18\u6cd5\u304c\u591a\u304f\u30d2\u30c3\u30c8\u3059\u308b\u304c\u3001\u6700\u65b0\u306e\u30d0\u30fc\u30b8\u30e7\u30f36\u3067\u306f\u3001 Auth \u3092\u66f8\u304f\u5fc5\u8981\u304c\u306a\u3044\u306a\u3069\u3001\u66f8\u304d\u65b9\u304c\u5fae\u5999\u306b\u7570\u306a\u308b\u306e\u3067\u6ce8\u610f\u3059\u308b\u2192 \u516c\u5f0f\u30c9\u30ad\u30e5\u30e1\u30f3\u30c8<\/ul>\n<\/li>\n<\/ul>\n<p>\u4ee5\u4e0b\u3001\u30b3\u30fc\u30c9\u4f8b<\/p>\n<pre class=\"post-pre\"><code>import '@\/styles\/globals.css'\r\nimport { Authenticator, View, Image, useTheme } from '@aws-amplify\/ui-react'\r\nimport '@aws-amplify\/ui-react\/styles.css'\r\nimport { Amplify } from 'aws-amplify'\r\nimport type { AppProps } from 'next\/app'\r\nimport React from 'react'\r\nimport awsExports from '@\/aws-exports.js'\r\n\r\nAmplify.configure(awsExports)\r\n\r\nconst authComponents = {\r\n  Header() {\r\n    const { tokens } = useTheme()\r\n\r\n    return (\r\n      &lt;View textAlign='center' padding={tokens.space.xxxl}&gt;\r\n        &lt;Image alt='logo' src='\/logo.png' \/&gt;\r\n      &lt;\/View&gt;\r\n    )\r\n  },\r\n}\r\n\r\nexport default function App({ Component, pageProps: { session, ...pageProps } }: AppProps) {\r\n  return (\r\n    \/\/ \u30e6\u30fc\u30b6\u30fc\u767b\u9332\u3092\u8a31\u53ef\u3057\u306a\u3044\u8981\u4ef6\u3060\u3063\u305f\u306e\u3067\u3001hideSignUp={true} \u3092\u8ffd\u52a0\u3057\u3066\u3044\u308b\r\n    &lt;Authenticator hideSignUp={true} components={authComponents}&gt;\r\n      &lt;Component {...pageProps} \/&gt;\r\n    &lt;\/Authenticator&gt;\r\n  )\r\n}\r\n\r\n<\/code><\/pre>\n<h1>\u7ed3\u675f<\/h1>\n<ul class=\"post-ul\">\u4e0d\u5099\u304c\u591a\u3005\u3042\u308a\u3054\u8ff7\u60d1\u3092\u304a\u304b\u3051\u3057\u307e\u3059\u3002\u9069\u5b9c\u3001\u4ed6\u306e\u8a18\u4e8b\u3068\u4f75\u305b\u3066\u304a\u4f7f\u3044\u3044\u305f\u3060\u3051\u308c\u3070\u5e78\u3044\u3067\u3059\u3002<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u9996\u5148 Next.js \u306bCognito\u306b\u3088\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u306b\u3084\u3063\u305f\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3057\u305f\u3002 &nbsp;  [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-38359","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1 - Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528next-js\u548caws-amplify-auth\uff08cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\" \/>\n<meta property=\"og:description\" content=\"\u9996\u5148 Next.js \u306bCognito\u306b\u3088\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u306b\u3084\u3063\u305f\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3057\u305f\u3002 &nbsp; [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528next-js\u548caws-amplify-auth\uff08cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-30T01:47:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-05-03T16:28:28+00:00\" \/>\n<meta name=\"author\" content=\"\u79d1, \u96c5\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u79d1, \u96c5\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/\",\"name\":\"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1 - Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-01-30T01:47:53+00:00\",\"dateModified\":\"2024-05-03T16:28:28+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.silicloud.com\/zh\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a\",\"name\":\"\u79d1, \u96c5\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g\",\"caption\":\"\u79d1, \u96c5\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1 - Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528next-js\u548caws-amplify-auth\uff08cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\/","og_locale":"zh_CN","og_type":"article","og_title":"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1","og_description":"\u9996\u5148 Next.js \u306bCognito\u306b\u3088\u308b\u8a8d\u8a3c\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3068\u304d\u306b\u3084\u3063\u305f\u3053\u3068\u3092\u30e1\u30e2\u3057\u307e\u3057\u305f\u3002 &nbsp; [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528next-js\u548caws-amplify-auth\uff08cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-01-30T01:47:53+00:00","article_modified_time":"2024-05-03T16:28:28+00:00","author":"\u79d1, \u96c5","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u79d1, \u96c5","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/","name":"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1 - Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-01-30T01:47:53+00:00","dateModified":"2024-05-03T16:28:28+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a"},"breadcrumb":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.silicloud.com\/zh\/blog\/"},{"@type":"ListItem","position":2,"name":"\u4e0b\u4e00\u4e2a\u9009\u9879\u662f\u4f7f\u7528Next.js\u548caws-amplify auth\uff08Cognito\uff09\u8fdb\u884c\u7528\u6237\u8eab\u4efd\u9a8c\u8bc1"}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/41e222757cdd2a3365361328bd79970a","name":"\u79d1, \u96c5","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1b2d3e00a7df03689797ebd4af8c5827ba5af936849a71050ec331f4cf902c5d?s=96&d=mm&r=g","caption":"\u79d1, \u96c5"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/keya\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/%e4%b8%8b%e4%b8%80%e4%b8%aa%e9%80%89%e9%a1%b9%e6%98%af%e4%bd%bf%e7%94%a8next-js%e5%92%8caws-amplify-auth%ef%bc%88cognito%ef%bc%89%e8%bf%9b%e8%a1%8c%e7%94%a8%e6%88%b7%e8%ba%ab%e4%bb%bd%e9%aa%8c\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=38359"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38359\/revisions"}],"predecessor-version":[{"id":95017,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/38359\/revisions\/95017"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=38359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=38359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=38359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}