Raw
1 /** @type {import('types').Sidebar.SidebarItem[]} */
2 export const authSidebar = [
3 {
4 type: "sidebar",
5 sidebar_id: "auth",
6 title: "Auth Module",
7 children: [
8 {
9 type: "link",
10 path: "/commerce-modules/auth",
11 title: "Overview",
12 },
13 {
14 type: "link",
15 path: "/commerce-modules/auth/module-options",
16 title: "Module Options",
17 },
18 {
19 type: "separator",
20 },
21 {
22 type: "category",
23 title: "Concepts",
24 children: [
25 {
26 type: "link",
27 path: "/commerce-modules/auth/auth-identity-and-actor-types",
28 title: "Identity and Actor Types",
29 },
30 {
31 type: "link",
32 path: "/commerce-modules/auth/auth-providers",
33 title: "Auth Module Provider",
34 },
35 {
36 type: "link",
37 path: "/commerce-modules/auth/auth-flows",
38 title: "Auth Flow with Module",
39 },
40 {
41 type: "link",
42 path: "/commerce-modules/auth/authentication-route",
43 title: "Auth Flow with Routes",
44 },
45 {
46 type: "link",
47 path: "/commerce-modules/auth/mfa",
48 title: "Multi-Factor Authentication",
49 },
50 ],
51 },
52 {
53 type: "category",
54 title: "Server Guides",
55 autogenerate_tags: "server+auth",
56 autogenerate_as_ref: true,
57 sort_sidebar: "alphabetize",
58 description:
59 "Learn how to use the Auth Module in your customizations on the Medusa application server.",
60 children: [
61 {
62 type: "link",
63 path: "/commerce-modules/auth/create-actor-type",
64 title: "Create Actor Type",
65 },
66 {
67 type: "link",
68 path: "/commerce-modules/auth/link-provider-identity",
69 title: "Link Provider to Existing Actor",
70 },
71 {
72 type: "link",
73 path: "/commerce-modules/auth/reset-password",
74 title: "Handle Password Reset Event",
75 },
76 {
77 type: "link",
78 path: "/commerce-modules/auth/email-verification",
79 title: "Send Email Verification",
80 },
81 {
82 type: "link",
83 path: "/references/auth/provider",
84 title: "Create Auth Provider",
85 },
86 ],
87 },
88 {
89 type: "category",
90 title: "Storefront Guides",
91 autogenerate_tags: "storefront+auth,-jsSdk",
92 autogenerate_as_ref: true,
93 sort_sidebar: "alphabetize",
94 description:
95 "Learn how to integrate the Auth Module's features into your storefront.",
96 },
97 {
98 type: "category",
99 title: "Admin Guides",
100 autogenerate_tags: "admin+auth,-jsSdk",
101 autogenerate_as_ref: true,
102 sort_sidebar: "alphabetize",
103 description:
104 "Learn how to utilize administative features of the Auth Module.",
105 },
106 {
107 type: "category",
108 title: "Admin User Guides",
109 autogenerate_tags: "userGuide+auth",
110 autogenerate_as_ref: true,
111 sort_sidebar: "alphabetize",
112 description:
113 "Learn how to utilize and manage Auth features in the Medusa Admin dashboard.",
114 },
115 {
116 type: "category",
117 title: "Providers",
118 children: [
119 {
120 type: "link",
121 path: "/commerce-modules/auth/auth-providers/emailpass",
122 title: "Emailpass Provider",
123 },
124 {
125 type: "link",
126 path: "/commerce-modules/auth/auth-providers/google",
127 title: "Google Provider",
128 },
129 {
130 type: "link",
131 path: "/commerce-modules/auth/auth-providers/github",
132 title: "GitHub Provider",
133 },
134 ],
135 },
136 {
137 type: "category",
138 title: "References",
139 description:
140 "Find references for tools and resources related to the Auth Module, such as data models, methods, and more. These are useful for your customizations.",
141 children: [
142 {
143 type: "link",
144 path: "/commerce-modules/auth/workflows",
145 title: "Workflows",
146 hideChildren: true,
147 children: [
148 {
149 type: "category",
150 title: "Workflows",
151 autogenerate_tags: "workflow+auth",
152 autogenerate_as_ref: true,
153 sort_sidebar: "alphabetize",
154 },
155 {
156 type: "category",
157 title: "Steps",
158 autogenerate_tags: "step+auth",
159 autogenerate_as_ref: true,
160 sort_sidebar: "alphabetize",
161 },
162 ],
163 },
164 {
165 type: "link",
166 path: "/commerce-modules/auth/js-sdk",
167 title: "JS SDK",
168 hideChildren: true,
169 autogenerate_tags: "jsSdk+auth",
170 autogenerate_as_ref: true,
171 sort_sidebar: "alphabetize",
172 },
173 {
174 type: "link",
175 path: "/references/auth/events",
176 title: "Events Reference",
177 },
178 {
179 type: "link",
180 path: "/commerce-modules/auth/admin-widget-zones",
181 title: "Admin Widget Zones",
182 },
183 {
184 type: "sidebar",
185 sidebar_id: "auth-service-reference",
186 title: "Main Service Reference",
187 childSidebarTitle: "Auth Module's Main Service Reference",
188 children: [
189 {
190 type: "link",
191 path: "/references/auth",
192 title: "Reference Overview",
193 },
194 {
195 type: "separator",
196 },
197 {
198 type: "category",
199 title: "Methods",
200 autogenerate_path:
201 "/references/auth/IAuthModuleService/methods",
202 },
203 ],
204 },
205 {
206 type: "sidebar",
207 sidebar_id: "auth-models-reference",
208 title: "Data Models Reference",
209 childSidebarTitle: "Auth Module Data Models Reference",
210 children: [
211 {
212 type: "link",
213 path: "/references/auth/models",
214 title: "Reference Overview",
215 },
216 {
217 type: "separator",
218 },
219 {
220 type: "category",
221 title: "Data Models",
222 autogenerate_path: "/references/auth_models/variables",
223 },
224 ],
225 },
226 ],
227 },
228 ],
229 },
230 ]