docs: update auth docs + add new storefront guides (#9020)
* docs: update auth docs + add new storefront guides * lint content * fix vale error * add callback response schema * Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx Co-authored-by: Stevche Radevski <sradevski@live.com> * Update www/apps/resources/app/commerce-modules/auth/auth-providers/github/page.mdx Co-authored-by: Stevche Radevski <sradevski@live.com> * Update www/apps/resources/app/commerce-modules/auth/authentication-route/page.mdx Co-authored-by: Stevche Radevski <sradevski@live.com> * address PR comments * replace google -> github * better explanation for refresh token --------- Co-authored-by: Stevche Radevski <sradevski@live.com>
This commit is contained in:
@@ -22,13 +22,14 @@ const OAS_PREFIX_REGEX = /@oas \[(?<method>(get|post|delete))\] (?<path>.+)/
|
||||
|
||||
const ignoreSchemas = [
|
||||
"AuthResponse",
|
||||
"AuthCallbackResponse",
|
||||
"AuthAdminSessionResponse",
|
||||
"AuthStoreSessionResponse",
|
||||
]
|
||||
|
||||
const ignoreTags = {
|
||||
admin: ["Auth"],
|
||||
store: ["Auth"]
|
||||
store: ["Auth"],
|
||||
}
|
||||
|
||||
export default async function () {
|
||||
@@ -229,8 +230,8 @@ export default async function () {
|
||||
}
|
||||
const lengthBefore = parsedBaseYaml.tags?.length || 0
|
||||
|
||||
parsedBaseYaml.tags = parsedBaseYaml.tags?.filter((tag) =>
|
||||
areaTags.has(tag.name) || ignoreTags[area].includes(tag.name)
|
||||
parsedBaseYaml.tags = parsedBaseYaml.tags?.filter(
|
||||
(tag) => areaTags.has(tag.name) || ignoreTags[area].includes(tag.name)
|
||||
)
|
||||
|
||||
if (lengthBefore !== (parsedBaseYaml.tags?.length || 0)) {
|
||||
|
||||
Reference in New Issue
Block a user