{"_id":"@connectivenetwork/sso-sdk","_rev":"8-24dab74ff32f318cfdb9a4acc006c912","name":"@connectivenetwork/sso-sdk","dist-tags":{"latest":"1.0.8"},"versions":{"1.0.0":{"name":"@connectivenetwork/sso-sdk","version":"1.0.0","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.0","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"616c36e308c4ebdad5fc2efa69cfdedc1cd47886","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.0.tgz","fileCount":7,"integrity":"sha512-4FeQQBhVBDCPodNQlIZhgmlHjFn/Eev2WLXFTSUYbxQ46HQTLl8Ismz653OwO3L2pl1uslginhUiSNDyNd787g==","signatures":[{"sig":"MEYCIQCxKh0vFHAMwXExHVhe6hzaynFjsnUKVFYVoXq6IKoANAIhAOcCEg+Xpi7ehZ06FsMDf4aEVsToIM92M0wJmQz1qVQe","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57017},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"86e1267e94ffecf5f25058f559f95cf09d087924","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"crypto-js":"^4.2.0","cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@types/crypto-js":"^4.2.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.0_1775726840606_0.15081803371976576","host":"s3://npm-registry-packages-npm-production"}},"1.0.1":{"name":"@connectivenetwork/sso-sdk","version":"1.0.1","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.1","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"9d543476a8710f9809041be0892961aea2b11901","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.1.tgz","fileCount":7,"integrity":"sha512-O7pHObvjafWYwDrKqJsNlQC/xxpQW4QVLplQqirKEgkKzo4blExxW6J5yCe1neCuBpnqj6YEtggklnLxlxAVwQ==","signatures":[{"sig":"MEUCIQDyC0lY0n19MPzQXWA5Uc1pDtuyQvjin+3LD4LrgIdlFQIgTs1MuZjoraBsAQw6dpXcRJWpQE1hFneORyFzbfDf5a8=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57059},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"36944c8339472384c854af201aa340f4809182a3","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"crypto-js":"^4.2.0","cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@types/crypto-js":"^4.2.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.1_1775726934652_0.37531635023450494","host":"s3://npm-registry-packages-npm-production"}},"1.0.2":{"name":"@connectivenetwork/sso-sdk","version":"1.0.2","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.2","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"3cf89d76ed340c8bbfe49778b6d536df8862e938","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.2.tgz","fileCount":7,"integrity":"sha512-ZOz+nL8gmB3LP7g21IZw3BKaOdv04UzCRM4U6fLIRTeFay6Qqj63Dk5hR3iP0gh7ArO3DeY3zYhejlP9ST6xug==","signatures":[{"sig":"MEQCIGvwuYYXpGjtduVbU6LOUdKepH7HGBbg9jROBMpTws3QAiBf2SsXDnTo1SCwIOI+cqfyu6SD+No+bdCYqiuNTY90Aw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":57059},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"8b4d7a3b405fbb38b55f4708adf4f669f1906ddd","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"crypto-js":"^4.2.0","cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@types/crypto-js":"^4.2.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.2_1775727047217_0.26590839146115","host":"s3://npm-registry-packages-npm-production"}},"1.0.3":{"name":"@connectivenetwork/sso-sdk","version":"1.0.3","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.3","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"03c96e5b7c787ca4e021e1d7f04c1f032d9e260f","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.3.tgz","fileCount":7,"integrity":"sha512-CNgx6ZV1NaLo02Zaot2M6BD13OPUr6vIbS+JxU/NS6YRDxlbQa1rjeeRrO58cj4M/YwZapMA+H15CTxcTvDABA==","signatures":[{"sig":"MEQCIEnYDPTrydj2JyL+60KsvzyaPPDYcbVRcgcWpp+jUsLMAiAqWoQ2xOeXZRsNN/ZL9Ku003vw72lCr5Uw3TE4KcQ70g==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59369},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"233992d42a0cefe647ae0d5617498d94dee52ded","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.3_1775811517124_0.020582346988549993","host":"s3://npm-registry-packages-npm-production"}},"1.0.4":{"name":"@connectivenetwork/sso-sdk","version":"1.0.4","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.4","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"08347e1cab21d37453125028dfe2801bc4d5d820","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.4.tgz","fileCount":7,"integrity":"sha512-u11KAVQlxwJrFokgSuuNjm3x608vtCbDYQrd58fsx4jUGF8dXui5gPqvE3QJFvvNcQQ5jNhLc2IDVNOGr2kXyw==","signatures":[{"sig":"MEQCIC+upEGecmpZE+BhlSROF+gHHKsB04iMO/YoPeqi0ZUpAiBHljwX3g0ESvd+o1lwgQemHLlbHzyuiz0w1xJDUOluyg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59361},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"6f782362c697da05e7f6709996dc640024e50595","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.4_1775812863426_0.9403487935843287","host":"s3://npm-registry-packages-npm-production"}},"1.0.5":{"name":"@connectivenetwork/sso-sdk","version":"1.0.5","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.5","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"67565dc5e77279625d59b6cfc938f280c65f377b","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.5.tgz","fileCount":7,"integrity":"sha512-QTsXfbx7RsVBgv/JHBghGwb9R56DBoQqsW0KdQSC9e+8qyPto7cCJrduswfejwIDD2YSGWiS1B9dnHL8WnkmMQ==","signatures":[{"sig":"MEUCIDeKRlvBgOrmyHD3hWwsisemBfDNRrc/noIsgW5qlaFoAiEAmq3fRDcztV8f0EsllMiZBpbemtN0QddOpt09RwC8qT4=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59361},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"dfab425e4b42321e111eb242f984cc7e0bdc44c6","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"11.9.0","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"24.14.0","dependencies":{"cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.5_1775813234899_0.3821427127683754","host":"s3://npm-registry-packages-npm-production"}},"1.0.6":{"name":"@connectivenetwork/sso-sdk","version":"1.0.6","keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","_id":"@connectivenetwork/sso-sdk@1.0.6","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"dist":{"shasum":"39e249896e4a1b615518eac8d3138da49b867cdb","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.6.tgz","fileCount":7,"integrity":"sha512-YqhRoaIMdamOOPtuLKwHYfWk6v76C5X59L7uZ4OTEPZjs0hwXUkdT4QhIwQIbXKWXBUVcS96Dm6+epkzmzJMcA==","signatures":[{"sig":"MEQCIHccAzLts1vn5QTE8NZ3gEw0GwfoJHxwxysRmGTomAbeAiBDC9KaqdDfeuxbewHCg4QWhlmOLbjRec/T9XxFLA32Pw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":59445},"main":"dist/index.js","types":"dist/index.d.ts","module":"dist/index.mjs","engines":{"node":">=14.0.0"},"exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"gitHead":"54ac2b824ac77fba2524371057fbebdc98732a4f","scripts":{"dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","build":"tsup src/index.ts --format cjs,esm --dts","test:watch":"vitest","prepublishOnly":"npm run build"},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"repository":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git","type":"git"},"_npmVersion":"10.9.2","description":"Connective SSO SDK for authentication integration","directories":{},"_nodeVersion":"22.14.0","dependencies":{"cross-fetch":"^4.0.0"},"_hasShrinkwrap":false,"devDependencies":{"tsup":"^8.0.0","eslint":"^8.57.0","vitest":"^1.0.0","typescript":"^5.4.0","@types/node":"^20.0.0","@typescript-eslint/parser":"^7.0.0","@typescript-eslint/eslint-plugin":"^7.0.0"},"_npmOperationalInternal":{"tmp":"tmp/sso-sdk_1.0.6_1776669086335_0.49296474823876335","host":"s3://npm-registry-packages-npm-production"}},"1.0.8":{"name":"@connectivenetwork/sso-sdk","version":"1.0.8","description":"Connective SSO SDK for authentication integration","main":"dist/index.js","module":"dist/index.mjs","types":"dist/index.d.ts","exports":{".":{"types":"./dist/index.d.ts","import":"./dist/index.mjs","require":"./dist/index.js"}},"scripts":{"build":"tsup src/index.ts --format cjs,esm --dts","dev":"tsup src/index.ts --format cjs,esm --dts --watch","lint":"eslint src --ext .ts","test":"vitest run","test:watch":"vitest","prepublishOnly":"npm run build"},"keywords":["connective","sso","authentication","sdk"],"author":{"name":"Connective"},"license":"Apache-2.0","devDependencies":{"@types/node":"^20.0.0","@typescript-eslint/eslint-plugin":"^7.0.0","@typescript-eslint/parser":"^7.0.0","eslint":"^8.57.0","tsup":"^6.7.0","typescript":"^5.4.0","vitest":"^1.0.0"},"dependencies":{"cross-fetch":"^4.0.0"},"engines":{"node":">=14.0.0"},"repository":{"type":"git","url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git"},"bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","gitHead":"c0a2c6697870469fbc210cd16108c058d0811370","_id":"@connectivenetwork/sso-sdk@1.0.8","_nodeVersion":"14.21.3","_npmVersion":"6.14.18","dist":{"integrity":"sha512-Wnj3VaYXZNDwDCCf46fJkd6KkANjy49T4dcAXAXke7UNOWBv+n6Xm973oarP5izKJYRdKW24BqYx/pX4PXvl4Q==","shasum":"d657d9833370f290bab3f11a7b78c9338d16d037","tarball":"https://registry.npmjs.org/@connectivenetwork/sso-sdk/-/sso-sdk-1.0.8.tgz","fileCount":7,"unpackedSize":60255,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQC05TRcLoauebrOLu6+ZN2oIE6h0exMOvYQWQT4+O6GVwIhAPgFWtDqrQGYkngS+nCV/HcoDx44zYjWgRCTQvbjhIqI"}]},"_npmUser":{"name":"reisap","email":"r.prasaptaraya@gmail.com"},"directories":{},"maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/sso-sdk_1.0.8_1781868020741_0.6272865196804978"},"_hasShrinkwrap":false}},"time":{"created":"2026-04-09T09:27:20.527Z","modified":"2026-06-19T11:20:21.088Z","1.0.0":"2026-04-09T09:27:20.753Z","1.0.1":"2026-04-09T09:28:54.780Z","1.0.2":"2026-04-09T09:30:47.376Z","1.0.3":"2026-04-10T08:58:37.252Z","1.0.4":"2026-04-10T09:21:03.581Z","1.0.5":"2026-04-10T09:27:15.089Z","1.0.6":"2026-04-20T07:11:26.486Z","1.0.8":"2026-06-19T11:20:20.917Z"},"bugs":{"url":"https://scm.carii.com:8443/microfrontend/sso-sdk/issues"},"author":{"name":"Connective"},"license":"Apache-2.0","homepage":"https://scm.carii.com:8443/microfrontend/sso-sdk#readme","keywords":["connective","sso","authentication","sdk"],"repository":{"type":"git","url":"https://scm.carii.com:8443/microfrontend/sso-sdk.git"},"description":"Connective SSO SDK for authentication integration","maintainers":[{"name":"reisap","email":"r.prasaptaraya@gmail.com"},{"name":"seprian","email":"seprian.bermanda@carii.com"}],"readme":"# @connectivenetwork/sso-sdk\n\nconnective SSO SDK for Single Sign-On authentication integration.\n\n## Installation\n\n```bash\nnpm install @connectivenetwork/sso-sdk\n```\n\n## Usage\n\n### Initialize Client\n\n**For SSO Tokensite Flow (Carii API):**\n```typescript\nimport { SSOClient } from '@connectivenetwork/sso-sdk';\n\n// No config required - uses default Carii API\nconst client = new SSOClient();\n\n// Or with custom API URL:\nconst client = new SSOClient({\n  cariiApiUrl: 'https://api.dev.carii.pro'\n});\n```\n\n**For OAuth2 PKCE Flow:**\n```typescript\nimport { SSOClient } from '@connectivenetwork/sso-sdk';\n\nconst client = new SSOClient({\n  baseUrl: 'https://auth.connective.id',\n  clientId: 'your-client-id',\n  redirectUri: 'https://your-app.com/callback',\n  timeout: 30000, // optional, default 30s\n});\n```\n\n### SSO Tokensite Flow (Carii API Integration)\n\nFlow for Carii SSO integration. Encrypts user data and sends to Carii API to get redirect URL.\n\n```typescript\nimport { SSOClient, SSOInitPayload } from '@connectivenetwork/sso-sdk';\n\nconst client = new SSOClient();\n\n// 1. Prepare payload data\nconst payload: SSOInitPayload = {\n  email: 'user@example.com',\n  fullname: 'John Doe',\n  membershipTypeName: 'Corporate Team', // Membership type (required for multi tier membership)\n  domain: 'your-domain.com',        // Domain of website using this SDK\n  tokenWebsite: 'token-from-carii', // Token provided by Carii\n};\n\n// 2. Initiate SSO - encrypt and call Carii API\nconst secretKey = 'token-from-carii'; // Token provided by Carii\nconst response = await client.initiateSSO(payload, secretKey);\n\n// Example response:\n// {\n//   \"redirectUrl\": \"https://sso.carii.pro/auth?session=abc123&callback=https://your-app.com/callback\",\n//   \"sessionId\": \"sess_123456789\",\n//   \"expiresAt\": \"2024-01-15T10:30:00Z\"\n// }\n\n// 3. Redirect to the URL returned by Carii API\nwindow.location.href = response.redirectUrl;\n```\n\n### Verify Callback Response\n\nWhen Carii redirects back to your domain with a tokensite parameter:\n\n```typescript\n// After Carii redirects back to your callback URL\nconst callbackUrl = window.location.href;\n// e.g., https://your-app.com/callback?tokensite=encrypted_data\n\ntry {\n  const result = client.parseSSOCallback(callbackUrl, secretKey);\n  console.log('Decrypted payload:', result.decryptedPayload);\n  // { email, fullname, domain, tokenWebsite, timestamp }\n} catch (error) {\n  // Handle invalid/expired tokensite\n}\n```\n\n### Authentication Flow with PKCE (OAuth2 Standard)\n\n```typescript\n// 1. Generate PKCE challenge\nconst pkceChallenge = client.generatePKCEChallenge();\n\n// 2. Save codeVerifier for later use (session storage)\nsessionStorage.setItem('codeVerifier', pkceChallenge.codeVerifier);\n\n// 3. Create authorization URL\nconst state = crypto.randomUUID();\nconst authUrl = client.getAuthorizationUrl(state, pkceChallenge);\n\n// 4. Redirect user to login page\nwindow.location.href = authUrl;\n```\n\n### Exchange Authorization Code\n\n```typescript\n// After user returns from login page with code\nconst urlParams = new URLSearchParams(window.location.search);\nconst code = urlParams.get('code');\nconst codeVerifier = sessionStorage.getItem('codeVerifier');\n\nif (code && codeVerifier) {\n  const tokens = await client.exchangeCodeForTokens(code, codeVerifier);\n  // Store tokens\n  localStorage.setItem('accessToken', tokens.access_token);\n  localStorage.setItem('refreshToken', tokens.refresh_token);\n}\n```\n\n### Get User Info\n\n```typescript\nconst userInfo = await client.getUserInfo(accessToken);\nconsole.log(userInfo.email, userInfo.name);\n```\n\n### Refresh Token\n\n```typescript\nconst newTokens = await client.refreshToken(refreshToken);\n```\n\n### Revoke Token\n\n```typescript\nawait client.revokeToken(refreshToken);\n```\n\n## API Reference\n\n### SSOClient\n\n#### Constructor\n\n| Parameter | Type | Required | Description |\n|-----------|------|----------|-------------|\n| baseUrl | `string` | No* | Base URL for OAuth2 (*required for OAuth2 flow) |\n| clientId | `string` | No* | Client ID (*required for OAuth2 flow) |\n| clientSecret | `string` | No | Client Secret (server-side only) |\n| redirectUri | `string` | No* | OAuth callback URI (*required for OAuth2 flow) |\n| cariiApiUrl | `string` | No | Carii API URL (default: `https://api.dev.carii.pro`) |\n| timeout | `number` | No | Request timeout in ms (default: `30000`) |\n\n#### Methods\n\n**OAuth2/PKCE Methods:**\n- `generatePKCEChallenge()` - Generate PKCE challenge\n- `getAuthorizationUrl(state, pkceChallenge?, scopes?)` - Build authorization URL\n- `exchangeCodeForTokens(code, codeVerifier?)` - Exchange code for tokens\n- `refreshToken(refreshToken)` - Refresh access token\n- `getUserInfo(accessToken)` - Get user information\n- `revokeToken(token, tokenTypeHint?)` - Revoke token\n\n**SSO Tokensite Methods:**\n- `initiateSSO(payload, secretKey)` - Encrypt payload, call Carii API, get redirect URL\n- `encryptTokensite(payload, secretKey)` - Encrypt SSO payload to tokensite\n- `buildSSOCallbackUrl(baseUrl, payload, secretKey)` - Build callback URL with encrypted tokensite\n- `decryptTokensite(tokensite, secretKey)` - Decrypt tokensite to payload\n- `parseSSOCallback(callbackUrl, secretKey)` - Parse callback URL and decrypt tokensite\n\n## Error Handling\n\nThis SDK provides several custom error classes:\n\n- `SSOError` - Base error class\n- `AuthenticationError` - Authentication failed\n- `TokenError` - Token related errors\n- `NetworkError` - Network request errors\n- `ValidationError` - Validation errors\n\n```typescript\nimport { AuthenticationError, TokenError } from '@connectivenetwork/sso-sdk';\n\ntry {\n  const user = await client.getUserInfo(token);\n} catch (error) {\n  if (error instanceof AuthenticationError) {\n    // Handle authentication error\n  } else if (error instanceof TokenError) {\n    // Handle token error\n  }\n}\n```\n\n\n","readmeFilename":"README.md"}