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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ _How should users update their code/configuration to adapt to the breaking chang

### Security checks

- [ ] Followed secure coding standards in [WSO2 Secure Coding Guidelines](https://security.docs.wso2.com/en/latest/security-guidelines/secure-engineering-guidelines/secure-coding-guidlines/introduction/)
- [ ] Followed secure coding standards.
- [ ] Confirmed that this PR doesn't commit any keys, passwords, tokens, usernames, or other secrets.
19 changes: 2 additions & 17 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import thunderIdPlugin from '@thunderid/eslint-plugin';

Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "@thunderid/javascript-sdks",
"version": "0.0.0",
"description": "JavaScript Eco-system SDKs for ⚡️ ThunderID",
"author": "WSO2",
"author": "The ThunderID Authors",
"license": "Apache-2.0",
"type": "module",
"homepage": "https://github.com/thunder-id/javascript-sdks",
Expand All @@ -17,8 +17,7 @@
"keywords": [
"thunderid",
"sdk",
"javascript",
"wso2"
"javascript"
],
"scripts": {
"build": "turbo run build",
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import thunderIdPlugin from '@thunderid/eslint-plugin';

Expand Down
2 changes: 1 addition & 1 deletion packages/browser/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"bugs": {
"url": "https://github.com/thunder-id/thunderid/issues"
},
"author": "WSO2",
"author": "The ThunderID Authors",
"license": "Apache-2.0",
"type": "module",
"main": "dist/cjs/index.cjs",
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/prettier.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import config from '@thunderid/prettier-config';

Expand Down
19 changes: 2 additions & 17 deletions packages/browser/rolldown.config.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import {readFileSync} from 'fs';
import {createRequire} from 'module';
Expand Down
38 changes: 4 additions & 34 deletions packages/browser/scripts/generate-anonymous-animal-icons.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

/**
* Regenerates `src/utils/anonymousAnimalIcons.generated.ts` from the SVG files in
Expand Down Expand Up @@ -65,23 +50,8 @@ const icons = names.map((name) => {
return {color, markup, name};
});

const banner = `/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const banner = `// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

// AUTO-GENERATED FILE. Do not edit directly.
// Regenerate with: node scripts/generate-anonymous-animal-icons.mjs
Expand Down
38 changes: 4 additions & 34 deletions packages/browser/scripts/generate-anonymous-entity-icons.mjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

/**
* Regenerates `src/utils/anonymousEntityIcons.generated.ts` from the SVG files in
Expand Down Expand Up @@ -66,23 +51,8 @@ const icons = names.map((name) => {
return {color, markup, name};
});

const banner = `/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const banner = `// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

// AUTO-GENERATED FILE. Do not edit directly.
// Regenerate with: node scripts/generate-anonymous-entity-icons.mjs
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/FetchHttpClient.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import {HttpClient, HttpError, HttpRequestConfig, HttpResponse} from '@thunderid/javascript';

Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/ThunderIDBrowserClient.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import {
ThunderIDJavaScriptClient,
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/constants/Hooks.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

/**
* Event hook names for attaching callbacks via `ThunderIDBrowserClient.on()`.
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/constants/SPAConstants.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

export const ERROR = 'error';
export const ERROR_DESCRIPTION = 'error_description';
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2025, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2025 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

/**
* Entry point for all public APIs of the @thunderid/browser SDK.
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/models/BrowserConfig.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

import {AuthClientConfig} from '@thunderid/javascript';
import {BrowserStorage} from './BrowserStorage';
Expand Down
19 changes: 2 additions & 17 deletions packages/browser/src/models/BrowserStorage.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,5 @@
/**
* Copyright (c) 2026, WSO2 LLC. (https://www.wso2.com).
*
* WSO2 LLC. licenses this file to you under the Apache License,
* Version 2.0 (the "License"); you may not use this file except
* in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
// Copyright 2026 The ThunderID Authors
// SPDX-License-Identifier: Apache-2.0

/**
* Supported browser storage backends for auth session data.
Expand Down
Loading
Loading