docs: general improvements and additions (#12296)
This commit is contained in:
+1
-1
@@ -112,7 +112,7 @@ module.exports = defineConfig({
|
||||
`,
|
||||
`## 5. Test it Out
|
||||
|
||||
To test out your Authentication Module Provider, use any of the [Authentication Routes](https://docs.medusajs.com/v2/resources/commerce-modules/auth/authentication-route), using your provider's ID as a path parameter.
|
||||
To test out your Authentication Module Provider, use any of the [Authentication Routes](https://docs.medusajs.com/resources/commerce-modules/auth/authentication-route), using your provider's ID as a path parameter.
|
||||
|
||||
For example, to get a registration token for an admin user, send a \`POST\` request to \`/auth/user/my-auth/register\` replacing \`my-auth\` with your Authentication Module Provider's ID:
|
||||
|
||||
|
||||
+21
-3
@@ -1,11 +1,29 @@
|
||||
import Handlebars from "handlebars"
|
||||
import { SignatureReflection } from "typedoc"
|
||||
import {
|
||||
Reflection,
|
||||
ReflectionKind,
|
||||
SignatureReflection,
|
||||
SourceReference,
|
||||
} from "typedoc"
|
||||
|
||||
export default function () {
|
||||
Handlebars.registerHelper(
|
||||
"sourceCodeLink",
|
||||
function (this: SignatureReflection): string {
|
||||
const source = this.parent.sources?.[0]
|
||||
function (this: Reflection): string {
|
||||
let source: SourceReference | undefined
|
||||
|
||||
switch (this.kind) {
|
||||
case ReflectionKind.GetSignature:
|
||||
if (this.parent instanceof SignatureReflection) {
|
||||
source = this.parent.sources?.[0]
|
||||
}
|
||||
break
|
||||
default:
|
||||
if ("sources" in this) {
|
||||
source = (this.sources as SourceReference[])?.[0]
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
if (!source?.url) {
|
||||
return ""
|
||||
|
||||
+2
@@ -4,4 +4,6 @@
|
||||
|
||||
{{/if}}
|
||||
|
||||
{{{sourceCodeLink}}}
|
||||
|
||||
{{{dmlProperties}}}
|
||||
Reference in New Issue
Block a user