docs: phone authentication + otp guide (#12544)

* initial

* docs: phone authentication guide

* small fix

* Twilio SMS -> Twilio

* vale fix

* fix

* fix to auth sidebar

* fixes

* generate
This commit is contained in:
Shahed Nasser authored and GitHub committed 2025-05-27 12:01:04 +03:00
1 parent 5b86b3b2bc
commit 41c29ffadd
14 files changed
+21950 -17506

No files matched your search

File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -167,6 +167,14 @@ A Notification Module Provider sends messages to users and customers in your Med
variant: "blue", variant: "blue",
children: "Tutorial" children: "Tutorial"
} }
},
{
href: "/how-to-tutorials/tutorials/phone-auth#step-3-integrate-twilio-sms",
title: "Twilio SMS",
badge: {
variant: "blue",
children: "Tutorial"
}
} }
]} ]}
className="mb-1" className="mb-1"
@@ -743,6 +743,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/loyalty-points/page.mdx", "filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/loyalty-points/page.mdx",
"pathname": "/how-to-tutorials/tutorials/loyalty-points" "pathname": "/how-to-tutorials/tutorials/loyalty-points"
}, },
{
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/phone-auth/page.mdx",
"pathname": "/how-to-tutorials/tutorials/phone-auth"
},
{ {
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/product-reviews/page.mdx", "filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/product-reviews/page.mdx",
"pathname": "/how-to-tutorials/tutorials/product-reviews" "pathname": "/how-to-tutorials/tutorials/product-reviews"
@@ -471,7 +471,7 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"isPathHref": true, "isPathHref": true,
"type": "category", "type": "category",
"title": "Server Guides", "title": "Server Guides",
"autogenerate_tags": "server+auth", "autogenerate_tags": "auth+server",
"autogenerate_as_ref": true, "autogenerate_as_ref": true,
"sort_sidebar": "alphabetize", "sort_sidebar": "alphabetize",
"description": "Learn how to use the Auth Module in your customizations on the Medusa application server.", "description": "Learn how to use the Auth Module in your customizations on the Medusa application server.",
@@ -499,6 +499,14 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"path": "/commerce-modules/auth/reset-password", "path": "/commerce-modules/auth/reset-password",
"title": "Handle Password Reset Event", "title": "Handle Password Reset Event",
"children": [] "children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth",
"children": []
} }
] ]
}, },
@@ -2436,6 +2444,14 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"title": "Implement Loyalty Points", "title": "Implement Loyalty Points",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points", "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points",
"children": [] "children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"title": "Implement Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth",
"children": []
} }
] ]
}, },
@@ -454,6 +454,15 @@ const generatedgeneratedHowToTutorialsSidebarSidebar = {
"description": "Learn how to migrate data from Magento to Medusa.", "description": "Learn how to migrate data from Magento to Medusa.",
"children": [] "children": []
}, },
{
"loaded": true,
"isPathHref": true,
"type": "link",
"title": "Phone Authentication",
"path": "/how-to-tutorials/tutorials/phone-auth",
"description": "Learn how to allow users to authenticate using their phone numbers.",
"children": []
},
{ {
"loaded": true, "loaded": true,
"isPathHref": true, "isPathHref": true,
@@ -153,6 +153,14 @@ const generatedgeneratedIntegrationsSidebarSidebar = {
"path": "/infrastructure-modules/notification/sendgrid", "path": "/infrastructure-modules/notification/sendgrid",
"title": "SendGrid", "title": "SendGrid",
"children": [] "children": []
},
{
"loaded": true,
"isPathHref": true,
"type": "ref",
"path": "/how-to-tutorials/tutorials/phone-auth#step-3-integrate-twilio-sms",
"title": "Twilio SMS",
"children": []
} }
] ]
}, },
+1 -1
View File
@@ -47,7 +47,7 @@ export const authSidebar = [
{ {
type: "category", type: "category",
title: "Server Guides", title: "Server Guides",
autogenerate_tags: "server+auth", autogenerate_tags: "auth+server",
autogenerate_as_ref: true, autogenerate_as_ref: true,
sort_sidebar: "alphabetize", sort_sidebar: "alphabetize",
description: description:
@@ -113,6 +113,13 @@ While tutorials show you a specific use case, they also help you understand how
path: "/integrations/guides/magento", path: "/integrations/guides/magento",
description: "Learn how to migrate data from Magento to Medusa.", description: "Learn how to migrate data from Magento to Medusa.",
}, },
{
type: "link",
title: "Phone Authentication",
path: "/how-to-tutorials/tutorials/phone-auth",
description:
"Learn how to allow users to authenticate using their phone numbers.",
},
{ {
type: "link", type: "link",
title: "Product Reviews", title: "Product Reviews",
@@ -105,6 +105,11 @@ export const integrationsSidebar = [
path: "/infrastructure-modules/notification/sendgrid", path: "/infrastructure-modules/notification/sendgrid",
title: "SendGrid", title: "SendGrid",
}, },
{
type: "ref",
path: "/how-to-tutorials/tutorials/phone-auth#step-3-integrate-twilio-sms",
title: "Twilio SMS",
},
], ],
}, },
{ {
+4
View File
@@ -7,6 +7,10 @@ export const auth = [
"title": "Reset Password", "title": "Reset Password",
"path": "https://docs.medusajs.com/user-guide/reset-password" "path": "https://docs.medusajs.com/user-guide/reset-password"
}, },
{
"title": "Implement Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth"
},
{ {
"title": "Log-out Customer in Storefront", "title": "Log-out Customer in Storefront",
"path": "https://docs.medusajs.com/resources/storefront-development/customers/log-out" "path": "https://docs.medusajs.com/resources/storefront-development/customers/log-out"
+4
View File
@@ -19,6 +19,10 @@ export const customer = [
"title": "Implement Loyalty Points", "title": "Implement Loyalty Points",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points" "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points"
}, },
{
"title": "Implement Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth"
},
{ {
"title": "Manage Customer Addresses in Storefront", "title": "Manage Customer Addresses in Storefront",
"path": "https://docs.medusajs.com/resources/storefront-development/customers/addresses" "path": "https://docs.medusajs.com/resources/storefront-development/customers/addresses"
+4
View File
@@ -51,6 +51,10 @@ export const server = [
"title": "Loyalty Points", "title": "Loyalty Points",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points" "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points"
}, },
{
"title": "Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth"
},
{ {
"title": "Product Reviews", "title": "Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews" "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"
+4
View File
@@ -31,6 +31,10 @@ export const tutorial = [
"title": "Loyalty Points", "title": "Loyalty Points",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points" "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points"
}, },
{
"title": "Phone Authentication",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/phone-auth"
},
{ {
"title": "Product Reviews", "title": "Product Reviews",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews" "path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"