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
2025-05-27 12:01:04 +03:00
committed by GitHub
parent 5b86b3b2bc
commit 41c29ffadd
14 changed files with 21950 additions and 17506 deletions
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",
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"
@@ -743,6 +743,10 @@ export const filesMap = [
"filePath": "/www/apps/resources/app/how-to-tutorials/tutorials/loyalty-points/page.mdx",
"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",
"pathname": "/how-to-tutorials/tutorials/product-reviews"
@@ -471,7 +471,7 @@ const generatedgeneratedCommerceModulesSidebarSidebar = {
"isPathHref": true,
"type": "category",
"title": "Server Guides",
"autogenerate_tags": "server+auth",
"autogenerate_tags": "auth+server",
"autogenerate_as_ref": true,
"sort_sidebar": "alphabetize",
"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",
"title": "Handle Password Reset Event",
"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",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/loyalty-points",
"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.",
"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,
"isPathHref": true,
@@ -153,6 +153,14 @@ const generatedgeneratedIntegrationsSidebarSidebar = {
"path": "/infrastructure-modules/notification/sendgrid",
"title": "SendGrid",
"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",
title: "Server Guides",
autogenerate_tags: "server+auth",
autogenerate_tags: "auth+server",
autogenerate_as_ref: true,
sort_sidebar: "alphabetize",
description:
@@ -113,6 +113,13 @@ While tutorials show you a specific use case, they also help you understand how
path: "/integrations/guides/magento",
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",
title: "Product Reviews",
@@ -105,6 +105,11 @@ export const integrationsSidebar = [
path: "/infrastructure-modules/notification/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",
"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",
"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",
"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",
"path": "https://docs.medusajs.com/resources/storefront-development/customers/addresses"
+4
View File
@@ -51,6 +51,10 @@ export const server = [
"title": "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",
"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",
"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",
"path": "https://docs.medusajs.com/resources/how-to-tutorials/tutorials/product-reviews"