@loginid/websdk3 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +50 -0
  3. package/package.json +80 -0
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ ## 1.0.0 (2024-2-23)
2
+
3
+
4
+ ### Features
5
+
6
+ * **autofill passkeys:** added conditional UI capability to passkey authentication ([7222cf2](https://gitlab.com/loginid/software/sdks/websdk3/commit/7222cf274c7a566e8fa04bc12fc98952fc4b06b8))
7
+ * **conditional ui check:** added conditional UI availability helper function ([f6be2f0](https://gitlab.com/loginid/software/sdks/websdk3/commit/f6be2f028a3d1a8947aa6815994561e09e5d93a7))
8
+ * **initalization:** initial implementation of the sdk ([700d37b](https://gitlab.com/loginid/software/sdks/websdk3/commit/700d37beb198d50358a0c414237d669a05290d7f))
9
+ * **passkeyerror:** identify passkey errors with PasskeyError to provide better error messages ([bde5a4c](https://gitlab.com/loginid/software/sdks/websdk3/commit/bde5a4c9b71c57950e636a94f07bfafea76e865c))
package/README.md ADDED
@@ -0,0 +1,50 @@
1
+ # LoginID Web SDK
2
+
3
+ The LoginID Web SDK provides a comprehensive solution for integrating passkey-based authentication into web applications. This SDK leverages the Web Authentication (WebAuthn) API for creating and managing passkeys, facilitating a more secure and user-friendly authentication experience.
4
+
5
+ ## Features
6
+
7
+ - **Passkey Authentication**: Simplifies the process of authenticating users with passkeys, aligning with modern security standards.
8
+ - **Device Compatibility Checks**: Includes utilities to determine if the user's device supports passkeys.
9
+ - **WebAuthn Integration**: Utilizes the WebAuthn standard for creating and retrieving credentials, offering robust security features.
10
+ - **Comprehensive Passkey Management**: Offers functionalities to manage passkeys, including creation, registration, and authentication, as well as managing passkey details (e.g., renaming, listing, and deletion).
11
+
12
+ ## Installation
13
+
14
+ To integrate the LoginID Web SDK into your project, run the following command:
15
+
16
+ ```sh
17
+ npm install @loginid/websdk3
18
+ ```
19
+
20
+ ## How to Use
21
+
22
+ - visit our [API Reference documentation](https://docs.loginid.io/Client-SDKs/Web/web) for package implementation.
23
+
24
+ ## License
25
+
26
+ This project is licensed under the ISC License.
27
+
28
+ ### ISC License (Internet Systems Consortium License)
29
+
30
+ The ISC License is a simple and permissive open-source software license. It is similar in spirit to the MIT and BSD licenses. Here are the key points to understand about the ISC License:
31
+
32
+ - **Permission to Use:** You are granted the permission to use, copy, modify, and distribute the software for any purpose, whether for personal, educational, or commercial use.
33
+ - **No Warranty:** The software is provided "as is," without any warranties. The author or maintainer of the software is not liable for any issues or damages arising from its use.
34
+ - **Redistribution:** You are free to redistribute the software in its original source code or compiled binary form, provided you include the original copyright notice and the ISC License text.
35
+ - **Minimalistic:** The ISC License is known for its minimalistic and concise text, making it easy to understand and comply with.
36
+
37
+ ### Summary
38
+
39
+ The ISC License is a straightforward and permissive license that encourages collaboration and the free use of software in your projects. It offers the freedom to modify, share, and build upon software while requiring minimal legal documentation. You can use software under the ISC License for personal, educational, or commercial purposes.
40
+
41
+ For more details, please refer to the [full text of the ISC License](https://opensource.org/license/isc-license-txt/).
42
+
43
+ Link to ISC License
44
+ [ISC License (Full Text)](./LICENSE.md)
45
+
46
+ ## Contact and Support
47
+
48
+ - **Email**: [support@loginid.io](mailto:support@loginid.io)
49
+ - **Community Chat**: [Join our Slack](https://loginidiocommunity.slack.com)
50
+ - **Documentation**: [Read our full documentation](https://docs.loginid.io)
package/package.json ADDED
@@ -0,0 +1,80 @@
1
+ {
2
+ "name": "@loginid/websdk3",
3
+ "version": "1.0.0",
4
+ "description": "",
5
+ "main": "dist/index.cjs",
6
+ "module": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "type": "module",
9
+ "exports": {
10
+ ".": {
11
+ "require": "./dist/index.cjs",
12
+ "import": "./dist/index.js",
13
+ "types": "./dist/index.d.ts"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist",
18
+ "README.md",
19
+ "CHANGELOG.md"
20
+ ],
21
+ "private": false,
22
+ "publishConfig": {
23
+ "access": "public"
24
+ },
25
+ "scripts": {
26
+ "build": "tsc --noEmit & tsup ./src/index.ts --no-config --sourcemap --format esm,cjs --dts --minify",
27
+ "build:watch": "tsc --noEmit & tsup ./src/index.ts --watch --no-config --format esm,cjs --dts --minify",
28
+ "commit:pre": "npm run lint && npm run format",
29
+ "delete-maps": "npm run delete-map-files && npm run delete-references-to-map-files",
30
+ "delete-map-files": "find ./dist -name '*.map' -delete",
31
+ "delete-references-to-map-files": "find ./dist -name '*.js' -or -name '*.mjs' -exec sed -i -e 's/sourceMappingURL=[^ ]*.map//g' {} +",
32
+ "format": "pretty-quick --staged",
33
+ "gen": "openapi --input ./openapi.yaml --output ./src/api --name LoginIDService --useOptions --useUnionTypes",
34
+ "commit": "cz",
35
+ "lint": "eslint \"src/**/*.ts?(x)\"",
36
+ "lint:fix": "eslint \"src/**/*.ts?(x)\" --fix",
37
+ "log:env": "echo Using MODE: $MODE && echo Using APP_ENV: $APP_ENV",
38
+ "test": "jest"
39
+ },
40
+ "husky": {
41
+ "hooks": {
42
+ "pre-commit": "npm run commit:pre"
43
+ }
44
+ },
45
+ "author": "LoginID Inc.",
46
+ "license": "ISC",
47
+ "devDependencies": {
48
+ "@types/jest": "^29.5.12",
49
+ "@types/ua-parser-js": "^0.7.39",
50
+ "@typescript-eslint/eslint-plugin": "^6.20.0",
51
+ "commitizen": "^4.3.0",
52
+ "cz-conventional-changelog": "^3.3.0",
53
+ "eslint": "^8.56.0",
54
+ "husky": "^9.0.10",
55
+ "jest": "^29.7.0",
56
+ "jest-environment-jsdom": "^29.7.0",
57
+ "openapi-typescript-codegen": "^0.27.0",
58
+ "pretty-quick": "^4.0.0",
59
+ "ts-jest": "^29.1.2",
60
+ "ts-node": "^10.9.2",
61
+ "tsup": "^8.0.1",
62
+ "typescript": "^5.3.3"
63
+ },
64
+ "keywords": [
65
+ "authentication",
66
+ "passkey",
67
+ "fido2",
68
+ "biometrics",
69
+ "webauthn",
70
+ "passwordless"
71
+ ],
72
+ "dependencies": {
73
+ "ua-parser-js": "^1.0.37"
74
+ },
75
+ "config": {
76
+ "commitizen": {
77
+ "path": "./node_modules/cz-conventional-changelog"
78
+ }
79
+ }
80
+ }