Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/upset-bobcats-open.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@monocloud/auth-web-js': patch
---

Inital release of @monocloud/auth-web-js
10 changes: 10 additions & 0 deletions .changeset/web-js-signout-path-and-default-app-url.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
'@monocloud/auth-web-js': patch
---

Refine sign-out and redirect URI handling in `@monocloud/auth-web-js`:

- Renamed the `signOutCallbackPath` option to `signOutPath`.
- Made `appUrl` optional; it now defaults to the current page's origin (`window.location.origin`).
- Sign-out now always sends a `post_logout_redirect_uri`, defaulting to the app root when `signOutPath` is not set (mirroring how `callbackPath` defaults to the root for sign-in).
- Redirect and post-logout redirect URIs now have any trailing slash trimmed, and callback URL matching in `processCallback()` trims trailing slashes too, so they compare consistently.
6 changes: 6 additions & 0 deletions docs-gen/hook.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ const ROOT_SDK_NAME_REPLACEMENTS = [
['@monocloud/auth-node-core', 'Node.js Core'],
['@monocloud/auth-core', 'Node.js'],
['@monocloud/backend-node', 'Node.js Backend'],
['@monocloud/auth-web-js', 'JavaScript'],
];

const Type = {
Expand Down Expand Up @@ -290,6 +291,11 @@ export const load = app => {
);
}

page.contents = page.contents.replace(
/#### Implementation of\n\n.+?(\n\n|\n?$)/g,
''
);

if (type === Type.Components) {
const signatureRegex = /> \*\*.*?\*\*[\s\S]*?(\n\n|$)/;
page.contents = page.contents.replace(signatureRegex, '');
Expand Down
1 change: 1 addition & 0 deletions docs-gen/post-generate.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ const SDK_SLUGS = {
'_monocloud_auth-node-core': 'nodejs-core',
'_monocloud_auth-core': 'nodejs',
'_monocloud_backend-node': 'nodejs-backend',
'_monocloud_auth-web-js': 'web-js',
};

const CATEGORY_MAP = {
Expand Down
2 changes: 1 addition & 1 deletion docs/html/assets/hierarchy.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/html/assets/navigation.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/html/assets/search.js

Large diffs are not rendered by default.

Loading