{"id":373954,"date":"2023-03-30T05:04:41","date_gmt":"2023-03-30T05:04:41","guid":{"rendered":"https:\/\/webkul.com\/blog\/?p=373954"},"modified":"2024-10-23T08:06:01","modified_gmt":"2024-10-23T08:06:01","slug":"nextjs-auth-using-middleware","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/","title":{"rendered":"Authentication In NextJS Using Middleware"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\">Introduction<\/h1>\n\n\n\n<p>Here, we&#8217;re going to implement authentication using middleware.  To setup a nextjs project you can checkout this blog to setup a next js project efficiently &#8220;<a href=\"https:\/\/webkul.com\/blog\/project-setup-next-js\/\">How to setup a project in NextJs<\/a>&#8220;<\/p>\n\n\n\n<p>To implement this functionality we need these resources.<br>1. <a href=\"https:\/\/www.npmjs.com\/package\/js-cookie\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">js-cookie<\/a>:  This library is used to add and remove cookie from the app.<br>2<a href=\"https:\/\/nextjs.org\/docs\/advanced-features\/middleware\" target=\"_blank\" rel=\"noreferrer noopener\">. NextJS Middleware.<\/a> ( Concept of the Next.Js)<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">UI and Layout In NextJs<\/h2>\n\n\n\n<p>For form design, you can create your own custom design, which is often better. <\/p>\n\n\n\n<p>However, if you need some recommendations, you can check this blog for helpful insights and suggestion <a href=\"https:\/\/webkul.com\/blog\/implementation-of-useform-hook-in-nextjs\/\" target=\"_blank\" rel=\"noreferrer noopener\">How to Implement useForm() Hook in Nextjs | React<\/a>. <\/p>\n\n\n\n<p>In this blog UI part and validation of the form both are very well managed.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Cookie and its Implementation In NextJs<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">Add  Cookie.<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">import Cookies from &#039;js-cookie&#039;\n\nCookies.set(&#039;your-key-name&#039;, &#039;your-key-value&#039;)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Remove  Cookie.<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">Cookies.remove(&#039;your-key-name&#039;)<\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">Get  Cookie<\/h4>\n\n\n\n<pre class=\"EnlighterJSRAW\">Cookies.get(&#039;your-key-name&#039;)<\/pre>\n\n\n\n<p>these are the methods which we&#8217;re going to use to achieve the Authentication functionality, If you want to know more about the JS-Cookie library you can visit the <a href=\"https:\/\/www.npmjs.com\/package\/js-cookie\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">js-cookie<\/a> library documentation.<br><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">NextJS  Middleware<\/h2>\n\n\n\n<p>NextJS middleware allows user to run code on server end before request is completed. <\/p>\n\n\n\n<p>Then based on the incoming request, user can modify the request and response header. <\/p>\n\n\n\n<p>Additionally, we can handle redirecting and rewriting on incoming requests, as middleware runs before cached content. This allows us to modify static files and pages effectively.<\/p>\n\n\n\n<p><strong>These are the following steps we need to do setup middleware authentication in NextJS.<\/strong><\/p>\n\n\n\n<p>1. Add the route in which you want to authentication.<br>2. Add redirect functionality when user is authenticate or not.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Add the route in which you want to authentication<\/h3>\n\n\n\n<p>Firstly, you need to add <strong>middleware<\/strong> file in your NextJS app at the same level as your\u00a0<code>pages<\/code>\u00a0(in the root or\u00a0<code>src<\/code>\u00a0directory). <\/p>\n\n\n\n<p>After that add those route which you want to authenticate in <strong>middleware.js<\/strong> file.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">\/\/ Supports both a single string value or an array of matchers\nexport const config = {\n  matcher: &#091;&#039;\/route-which-you-want-to-authenticated&#039;],\n}<\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Add redirect functionality when user is authenticate or not<\/h3>\n\n\n\n<p>Now, further we&#8217;re going to set the redirect functionality to redirect to login page or any desired page if user is not authenticated. <\/p>\n\n\n\n<p>And For that, we going to use <strong>NextRequest<\/strong> of next\/server. it provide us the request object, and by this object we get the cookies data.<\/p>\n\n\n\n<p>When the cookies are empty, we redirect the user to the login page or any desired page of your choice. <\/p>\n\n\n\n<p>However Conversely, if the cookies are available, we route the user to the homepage or another specified page.<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">import { NextResponse } from &#039;next\/server&#039;\nimport type { NextRequest } from &#039;next\/server&#039;\n\nexport function middleware(request: NextRequest) {\n  const userToken = request.cookies.get(&#039;your-key&#039;)?.value;\n\n  if(!userToken) {\n     return NextResponse.redirect(new URL(&#039;\/login&#039;,request.url))\n  }\n\n  else {\n   return NextResponse.redirect(new URL(&#039;\/&#039;, request.url))\n  }\n}\n\nexport const config = {\n  matcher: &#039;\/desired-route&#039;,\n}<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Now, with middleware authentication, your Next.js app will authenticate on the server side. <\/p>\n\n\n\n<p>As a result, you won&#8217;t need to add authentication to every page; it will be handled globally.<\/p>\n\n\n\n<p>If you like this blog, you can check my blog on the<a href=\"https:\/\/webkul.com\/blog\/how-to-implement-magento-graphql-apis-with-nextjs-react\/\" target=\"_blank\" rel=\"noreferrer noopener\"> Implement magento graphQl api with NextJS<\/a>.<br>Happy Coding !!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Introduction Here, we&#8217;re going to implement authentication using middleware. To setup a nextjs project you can checkout this blog to setup a next js project efficiently &#8220;How to setup a project in NextJs&#8220; To implement this functionality we need these resources.1. js-cookie: This library is used to add and remove cookie from the app.2. NextJS <a href=\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":495,"featured_media":470869,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[198,13575],"tags":[1893,2064,12682],"class_list":["post-373954","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-javascript","category-next-js","tag-frontend","tag-javascript","tag-nextjs"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>NextJs | Authentication In NextJS Using Middleware | Webkul Blog<\/title>\n<meta name=\"description\" content=\"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"NextJs | Authentication In NextJS Using Middleware | Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2023-03-30T05:04:41+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-10-23T08:06:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"158\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/webp\" \/>\n<meta name=\"author\" content=\"Vishal Handa\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vishal Handa\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\"},\"author\":{\"name\":\"Vishal Handa\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e7c3652272858eee25f729824abcf94\"},\"headline\":\"Authentication In NextJS Using Middleware\",\"datePublished\":\"2023-03-30T05:04:41+00:00\",\"dateModified\":\"2024-10-23T08:06:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\"},\"wordCount\":448,\"commentCount\":1,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp\",\"keywords\":[\"frontend\",\"JavaScript\",\"nextjs\"],\"articleSection\":[\"JavaScript\",\"next js\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\",\"url\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\",\"name\":\"NextJs | Authentication In NextJS Using Middleware | Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp\",\"datePublished\":\"2023-03-30T05:04:41+00:00\",\"dateModified\":\"2024-10-23T08:06:01+00:00\",\"description\":\"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp\",\"width\":300,\"height\":158,\"caption\":\"magento graphql api's in nextjs\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Authentication In NextJS Using Middleware\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e7c3652272858eee25f729824abcf94\",\"name\":\"Vishal Handa\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/faed45c922f15ae5e9baa741827207ccec6ba6d51587eb248e61e0e4b888e355?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/faed45c922f15ae5e9baa741827207ccec6ba6d51587eb248e61e0e4b888e355?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vishal Handa\"},\"description\":\"Vishal Handa is a Software Engineer specializing in the Akeneo platform with expertise in PIM API Development and payment gateway integration services. Skilled in REST APIs, BackboneJS, and PostgreSQL, Vishal crafts seamless, high-performance solutions that enhance digital commerce and streamline data management.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/vishal-handa658\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"NextJs | Authentication In NextJS Using Middleware | Webkul Blog","description":"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.","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:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/","og_locale":"en_US","og_type":"article","og_title":"NextJs | Authentication In NextJS Using Middleware | Webkul Blog","og_description":"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.","og_url":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2023-03-30T05:04:41+00:00","article_modified_time":"2024-10-23T08:06:01+00:00","og_image":[{"width":300,"height":158,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp","type":"image\/webp"}],"author":"Vishal Handa","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vishal Handa","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/"},"author":{"name":"Vishal Handa","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e7c3652272858eee25f729824abcf94"},"headline":"Authentication In NextJS Using Middleware","datePublished":"2023-03-30T05:04:41+00:00","dateModified":"2024-10-23T08:06:01+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/"},"wordCount":448,"commentCount":1,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp","keywords":["frontend","JavaScript","nextjs"],"articleSection":["JavaScript","next js"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/","url":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/","name":"NextJs | Authentication In NextJS Using Middleware | Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp","datePublished":"2023-03-30T05:04:41+00:00","dateModified":"2024-10-23T08:06:01+00:00","description":"Article about the How to Implement the authentication by using js-cookie library and nextjs middleware concept.","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2023\/06\/webkul-og-300x158-1.webp","width":300,"height":158,"caption":"magento graphql api's in nextjs"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/nextjs-auth-using-middleware\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Authentication In NextJS Using Middleware"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/3e7c3652272858eee25f729824abcf94","name":"Vishal Handa","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/faed45c922f15ae5e9baa741827207ccec6ba6d51587eb248e61e0e4b888e355?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/faed45c922f15ae5e9baa741827207ccec6ba6d51587eb248e61e0e4b888e355?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vishal Handa"},"description":"Vishal Handa is a Software Engineer specializing in the Akeneo platform with expertise in PIM API Development and payment gateway integration services. Skilled in REST APIs, BackboneJS, and PostgreSQL, Vishal crafts seamless, high-performance solutions that enhance digital commerce and streamline data management.","url":"https:\/\/webkul.com\/blog\/author\/vishal-handa658\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373954","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/495"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=373954"}],"version-history":[{"count":20,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373954\/revisions"}],"predecessor-version":[{"id":470880,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/373954\/revisions\/470880"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/470869"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=373954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=373954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=373954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}