{"_id":"@oppulence/auth","_rev":"8-371fd127a7b33d60ed8327d38562fd90","name":"@oppulence/auth","dist-tags":{"latest":"0.3.2"},"versions":{"0.1.1":{"name":"@oppulence/auth","version":"0.1.1","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.1.1","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"7060fe61c32ff1be39755e12e333d3d73ebc9a98","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.1.1.tgz","fileCount":43,"integrity":"sha512-y6ehoOzdCRncFIGXOvIfYexaewom/6PUidqe+MDh5A28QyeA4m8Dk+JnYQOERviEFmodcc6Wh4JJb0Fi+GHGUQ==","signatures":[{"sig":"MEUCIQDit7o4NiBLLAly+RETm3VrtpenBswtZ6eO0abk1KofaAIgMSTuYpLE+4BCWdoAG/rN/6fTT5K8u7yPwJe8kwAZMRw=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":351912},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"eca4c3d16d6f171ac5c2ec35990c0039831e99f2","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^3.23.0","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.1.1_1769821170594_0.054889481480679736","host":"s3://npm-registry-packages-npm-production"}},"0.1.2":{"name":"@oppulence/auth","version":"0.1.2","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.1.2","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"0aa6f159c12e921e59c0cab524ae29f83780bdd9","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.1.2.tgz","fileCount":43,"integrity":"sha512-RyXuJffsc0Y499Wm7q4OijrdSHTao5ty2Qx1NR4VdMnEwl4Y30wBn9NwGTPSJbX79F5nh2S4//bq1OYcmJ/aTw==","signatures":[{"sig":"MEQCIHvXgsWZg0EfS74vSGF0vaY6Y80rEIzX2rP7pPTbCLBIAiAvKBv2suFTqZd9yVxfTsZikNyJKNPXwhHO+AeaKnRQJw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":354058},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"1dfe3291e8478aac7e45d9bf04ffc703f516ec35","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.1.2_1769890536108_0.4090070131695771","host":"s3://npm-registry-packages-npm-production"}},"0.1.3":{"name":"@oppulence/auth","version":"0.1.3","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.1.3","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"b992fffd9aa7ca13be5e671d0d30c335b8af0ca4","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.1.3.tgz","fileCount":43,"integrity":"sha512-hF0/t2j9jicXPuVOZd9XDKZcmI0dzquWQnxv9fJ3gnG4Jw2Kl1XoYeHB2olzjJ5IXO0Mm2n1UN329ZwdNYtwBg==","signatures":[{"sig":"MEQCIASDCItGrE2YxlE5k1qgFW5VAV+htJOMXU0GX9sugnhwAiBaTaUsB8S+yHr6SBdevL80rUWfVYAML44W11TGjfEakA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":354058},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"ebf853c112c42e54e25b601f96c41a8404b11312","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.1.3_1769896816417_0.9942740698309485","host":"s3://npm-registry-packages-npm-production"}},"0.2.0":{"name":"@oppulence/auth","version":"0.2.0","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.2.0","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"406835c5e38bb67ee1b04c7c12725c0656fb5351","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.2.0.tgz","fileCount":43,"integrity":"sha512-Cj1ryXCy1zkFb7XgvTs6cuaRubQt406XvJ3H3DhCZyeQr8x2+pUnROYzYHOnH2jeztzUl05+hzSjlFzgBds2Mw==","signatures":[{"sig":"MEUCIQC2Fao4GF5vVqgfkEL0RQ5MD0Ol6UeKmQK2clwkBJjFbgIgU9yRYIeGTEBkoSb/Q+tLJhtMQon4r48M2TLjZ2DuA5U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":354049},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"497689ccb1adeb69400be58ed9b82401731d752a","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.2.0_1769898301959_0.2222052604532847","host":"s3://npm-registry-packages-npm-production"}},"0.1.5":{"name":"@oppulence/auth","version":"0.1.5","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.1.5","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"669751d474c598bbdb44ca01e2bd097b8d8953c5","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.1.5.tgz","fileCount":43,"integrity":"sha512-k8IQSUknEq8rABstku//VL8novG1Zgcoux5lNZDGEDGaINmlnurqwTl2d1mmJR7HoFM24XcXyBodz61tx25SOA==","signatures":[{"sig":"MEUCIDmN0NNuvZsF95v7jCOjEffUm0BtmL96uXereCsFjrzqAiEAq0I8xz+hsjZkinjuugj//7cGsnCI4DsfrCfXDd8Wa3U=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":353995},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"4e31793632d828023a1b0718361e1424a4b376e6","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.1.5_1769899373276_0.3090870893637878","host":"s3://npm-registry-packages-npm-production"}},"0.2.1":{"name":"@oppulence/auth","version":"0.2.1","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.2.1","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"20b47de8655f5b675e2a9b371bdd50a43592b3ca","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.2.1.tgz","fileCount":43,"integrity":"sha512-7cCE/CIlRBsnowB/n+guDN+xdnpWM84jX3LKeODE085ZP8vzxM/Iy59wpQryJ5l0sVsL0rjxSzXZr0n05guk0Q==","signatures":[{"sig":"MEYCIQCDgTzCL6X+QU+iu43C4IGrCn7tvDNf59Za7qW7lqPNzwIhANLp4yAAJ3gcc+MKvqzQwbTF3xsCOmdNJGMl8+7Zx4dY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":353995},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"30399b3525d6ca970a725f74d704055be91aee52","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.0","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.2.1_1769899428686_0.7139491532784819","host":"s3://npm-registry-packages-npm-production"}},"0.3.1":{"name":"@oppulence/auth","version":"0.3.1","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"license":"MIT","_id":"@oppulence/auth@0.3.1","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"dist":{"shasum":"6fcf5ff50a4e0f53a8a8463b8108feefe7df5292","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.3.1.tgz","fileCount":52,"integrity":"sha512-7iUQof/ncOURvRe6Jxk7CKKi/bntVoWTEd+vpeap+94rIL5CEcioO8NwECpHCNIrdV364lri4IhscOePZX1UOg==","signatures":[{"sig":"MEQCIERF7p2WbmdGOa2GTjiznLGQE0hJfq8OdHfUFb5gzCFLAiBwLtrg+Cc3HvdkV/8MLNtpPWpuWtbEkBQoGd10yO7VuA==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":405276},"main":"./src/index.ts","type":"module","types":"./src/index.ts","module":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"}},"gitHead":"d8845e79ad66c5f6e29448488fab5f9fc485ec46","scripts":{"lint":"prettier --check \"src/**/*.{ts,tsx}\"","test":"vitest run","format":"prettier --write \"src/**/*.{ts,tsx}\"","typecheck":"tsc --noEmit","test:watch":"vitest","test:coverage":"vitest run --coverage"},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"repository":{"url":"git+https://github.com/Oppulence-Engineering/design-system.git","type":"git","directory":"packages/auth"},"_npmVersion":"10.8.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","directories":{},"_nodeVersion":"20.20.2","dependencies":{"zod":"^4.3.6","jose":"^5.0.0","@workos-inc/node":"^7.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"next":"^15.0.0","jsdom":"^25.0.0","react":"^19.0.0","vitest":"^4.0.0","react-dom":"^19.0.0","typescript":"^5.9.0","@types/node":"^20.0.0","@types/react":"^19.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@vitest/coverage-v8":"^4.0.0","@vitejs/plugin-react":"^4.3.0","@testing-library/react":"^16.0.0","@repo/typescript-config":"workspace:*","@oppulence/design-system":"^1.0.0","@testing-library/jest-dom":"^6.6.0","@testing-library/user-event":"^14.5.0"},"peerDependencies":{"next":">=15.0.0","react":">=19.0.0","@trpc/server":"^11.0.0","react-hook-form":"^7.50.0","@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"react-hook-form":{"optional":true},"@hookform/resolvers":{"optional":true}},"_npmOperationalInternal":{"tmp":"tmp/auth_0.3.1_1785649165419_0.973494699764611","host":"s3://npm-registry-packages-npm-production"}},"0.3.2":{"name":"@oppulence/auth","version":"0.3.2","description":"Enterprise-grade authentication package built on WorkOS with custom UI components","type":"module","main":"./src/index.ts","module":"./src/index.ts","types":"./src/index.ts","exports":{".":{"types":"./src/index.ts","import":"./src/index.ts","default":"./src/index.ts"},"./nextjs":{"types":"./src/nextjs.ts","import":"./src/nextjs.ts","default":"./src/nextjs.ts"},"./trpc":{"types":"./src/trpc.ts","import":"./src/trpc.ts","default":"./src/trpc.ts"}},"publishConfig":{"access":"public"},"repository":{"type":"git","url":"git+https://github.com/Oppulence-Engineering/design-system.git","directory":"packages/auth"},"license":"MIT","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"scripts":{"typecheck":"tsc --noEmit","lint":"prettier --check \"src/**/*.{ts,tsx}\"","format":"prettier --write \"src/**/*.{ts,tsx}\"","test":"vitest run","test:watch":"vitest","test:coverage":"vitest run --coverage"},"dependencies":{"@workos-inc/node":"^7.0.0","jose":"^5.0.0","zod":"^4.3.6"},"peerDependencies":{"@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0","@trpc/server":"^11.0.0","next":">=15.0.0","react":">=19.0.0","react-hook-form":"^7.50.0"},"peerDependenciesMeta":{"next":{"optional":true},"@trpc/server":{"optional":true},"@hookform/resolvers":{"optional":true},"react-hook-form":{"optional":true}},"devDependencies":{"@hookform/resolvers":"^3.0.0","@oppulence/design-system":"^1.0.0","@repo/typescript-config":"workspace:*","@testing-library/jest-dom":"^6.6.0","@testing-library/react":"^16.0.0","@testing-library/user-event":"^14.5.0","@types/node":"^20.0.0","@types/react":"^19.0.0","@vitejs/plugin-react":"^4.3.0","@vitest/coverage-v8":"^4.0.0","jsdom":"^25.0.0","next":"^15.0.0","react":"^19.0.0","react-dom":"^19.0.0","react-hook-form":"^7.50.0","typescript":"^5.9.0","vitest":"^4.0.0"},"_id":"@oppulence/auth@0.3.2","gitHead":"8058651fd99739468212e3c1650ae64889cc67e3","bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"homepage":"https://github.com/Oppulence-Engineering/design-system#readme","_nodeVersion":"20.20.2","_npmVersion":"10.8.2","dist":{"integrity":"sha512-RUTFiXwOXmday53fdyWOzKjmAOoKTr/TS0hv2G1b3GLvZJ7aiQ6PoirmP04Ed5FlsUPYT1ylarp9YWBAvr16Ew==","shasum":"ea53ab1fe853f887fb1d1218cb20ed0852dcd507","tarball":"https://registry.npmjs.org/@oppulence/auth/-/auth-0.3.2.tgz","fileCount":53,"unpackedSize":411323,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIFqS28Q2aGEc1AWrYDyPusHDIWqy2Qh+LChfgOLZAqZjAiEA5ItY46G8sFQQabs8KeLgPNDBylkL4dNj4UUACcEgqT4="}]},"_npmUser":{"name":"solomonai","email":"yoanyomba@solomon-ai.co"},"directories":{},"maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/auth_0.3.2_1785715516442_0.6959492846244577"},"_hasShrinkwrap":false}},"time":{"created":"2026-01-31T00:59:30.523Z","modified":"2026-08-03T00:05:16.778Z","0.1.1":"2026-01-31T00:59:30.734Z","0.1.2":"2026-01-31T20:15:36.247Z","0.1.3":"2026-01-31T22:00:16.569Z","0.2.0":"2026-01-31T22:25:02.128Z","0.1.5":"2026-01-31T22:42:53.439Z","0.2.1":"2026-01-31T22:43:48.825Z","0.3.1":"2026-08-02T05:39:25.563Z","0.3.2":"2026-08-03T00:05:16.597Z"},"bugs":{"url":"https://github.com/Oppulence-Engineering/design-system/issues"},"license":"MIT","homepage":"https://github.com/Oppulence-Engineering/design-system#readme","keywords":["auth","authentication","workos","react","nextjs","sso","oauth","enterprise"],"repository":{"type":"git","url":"git+https://github.com/Oppulence-Engineering/design-system.git","directory":"packages/auth"},"description":"Enterprise-grade authentication package built on WorkOS with custom UI components","maintainers":[{"name":"solomonai","email":"yoanyomba@solomon-ai.co"}],"readme":"# @oppulence/auth\n\nEnterprise-grade authentication package built on WorkOS with custom UI components using `@oppulence/design-system`.\n\n## Features\n\n- **WorkOS Integration**: User management, OAuth, SSO, MFA\n- **Custom UI**: Beautiful auth components using your design system\n- **Next.js Support**: Middleware, server utilities, API handlers\n- **tRPC Integration**: Type-safe procedure builders\n- **Multi-tenancy**: Built-in organization support\n- **TypeScript**: Full type safety throughout\n\n## Installation\n\n```bash\nbun add @oppulence/auth @oppulence/design-system\n```\n\n## Quick Start\n\n### 1. Environment Variables\n\n```bash\nWORKOS_API_KEY=sk_live_...\nWORKOS_CLIENT_ID=client_...\nWORKOS_COOKIE_SECRET=your-32-char-secret-key\nNEXT_PUBLIC_APP_URL=https://app.example.com\n```\n\n### 2. API Route Handler\n\n```ts\n// app/api/auth/[...auth]/route.ts\nimport { createAuthHandler } from \"@oppulence/auth/nextjs\";\n\nconst handler = createAuthHandler({\n  onSignIn: async (user, isNewUser) => {\n    console.log(\"User signed in:\", user.email);\n  },\n});\n\nexport { handler as GET, handler as POST };\n```\n\n### 3. Middleware\n\n```ts\n// middleware.ts\nimport { authMiddleware } from \"@oppulence/auth/nextjs\";\n\nexport default authMiddleware({\n  publicRoutes: [\"/sign-in\", \"/sign-up\", \"/forgot-password\"],\n});\n\nexport const config = {\n  matcher: [\"/((?!_next/static|_next/image|favicon.ico).*)\"],\n};\n```\n\n### 4. Auth Provider\n\n```tsx\n// app/layout.tsx\nimport { AuthProvider } from \"@oppulence/auth\";\n\nexport default function RootLayout({ children }) {\n  return (\n    <html>\n      <body>\n        <AuthProvider>{children}</AuthProvider>\n      </body>\n    </html>\n  );\n}\n```\n\n### 5. Sign In Page\n\n```tsx\n// app/sign-in/page.tsx\nimport { SignInForm } from \"@oppulence/auth\";\n\nexport default function SignInPage() {\n  return (\n    <div className=\"flex min-h-screen items-center justify-center\">\n      <SignInForm\n        providers={[\"google\", \"github\"]}\n        showForgotPassword\n        showSignUpLink\n      />\n    </div>\n  );\n}\n```\n\n## React Hooks\n\n```tsx\nimport {\n  useAuth,\n  useUser,\n  useSession,\n  useOrganization,\n  useOrganizations,\n  usePermissions,\n} from \"@oppulence/auth\";\n\nfunction MyComponent() {\n  const { user, isAuthenticated, signOut } = useAuth();\n  const { hasPermission, isAdmin } = usePermissions();\n\n  if (!isAuthenticated) {\n    return <p>Please sign in</p>;\n  }\n\n  return (\n    <div>\n      <p>Welcome, {user.email}</p>\n      {isAdmin && <AdminPanel />}\n      {hasPermission(\"billing:read\") && <BillingInfo />}\n      <button onClick={signOut}>Sign Out</button>\n    </div>\n  );\n}\n```\n\n## Server-Side (Next.js)\n\n```ts\n// Server Component or Route Handler\nimport { cookies } from \"next/headers\";\nimport { getUser, requireAuth, requirePermission } from \"@oppulence/auth/nextjs\";\n\n// Get user (returns null if not authenticated)\nconst user = await getUser(cookies());\n\n// Require authentication (throws if not authenticated)\nconst user = await requireAuth(cookies());\n\n// Require specific permission\nconst { user, organization } = await requirePermission(cookies(), \"billing:read\");\n```\n\n## tRPC Integration\n\n```ts\n// server/trpc/trpc.ts\nimport { initTRPC } from \"@trpc/server\";\nimport { createAuthContext, createAuthProcedures } from \"@oppulence/auth/trpc\";\n\nexport async function createContext({ req }) {\n  const auth = await createAuthContext({ headers: req.headers });\n  return { auth };\n}\n\nconst t = initTRPC.context<typeof createContext>().create();\n\nconst { protectedProcedure, orgProcedure, adminProcedure, permissionProcedure } =\n  createAuthProcedures(t);\n\n// Usage\nexport const userRouter = router({\n  me: protectedProcedure.query(({ ctx }) => ctx.auth.user),\n  orgSettings: orgProcedure.query(({ ctx }) => ctx.auth.organization),\n  billing: permissionProcedure(\"billing:read\").query(({ ctx }) => {\n    // Permission verified\n  }),\n});\n```\n\n## Components\n\n| Component | Description |\n|-----------|-------------|\n| `SignInForm` | Email/password + OAuth sign-in |\n| `SignUpForm` | Registration with password strength |\n| `SignOutButton` | Sign out button with loading state |\n| `UserMenu` | User dropdown with profile/settings |\n| `OrgSwitcher` | Organization selector dropdown |\n| `ProtectedRoute` | Auth-gated wrapper with role/permission checks |\n| `HasPermission` | Render children based on permission |\n| `HasRole` | Render children based on role |\n| `ForgotPasswordForm` | Password reset request (coming soon) |\n| `ResetPasswordForm` | Set new password (coming soon) |\n| `VerifyEmailForm` | OTP verification (coming soon) |\n\n## Form Schemas\n\nAll forms use Zod schemas that you can reuse:\n\n```ts\nimport {\n  signInSchema,\n  signUpSchema,\n  forgotPasswordSchema,\n  resetPasswordSchema,\n  evaluatePasswordStrength,\n} from \"@oppulence/auth\";\n\n// Validate password strength\nconst strength = evaluatePasswordStrength(\"MyP@ssw0rd123!\");\n// { strength: 'strong', score: 5, criteria: {...} }\n```\n\n## Type Exports\n\n```ts\nimport type {\n  User,\n  Session,\n  Organization,\n  OrganizationMembership,\n  Permission,\n  OrganizationRole,\n  AuthState,\n  AuthConfig,\n  AuthError,\n} from \"@oppulence/auth\";\n```\n\n## API Reference\n\n### createAuthHandler(config)\n\nCreates the API route handler.\n\n```ts\ninterface AuthHandlerConfig {\n  onSignIn?: (user: User, isNewUser: boolean) => Promise<void>;\n  onSignOut?: (userId: string) => Promise<void>;\n  onOrgSwitch?: (userId: string, orgId: string) => Promise<void>;\n  webhookSecret?: string;\n  webhooks?: Record<string, (payload) => Promise<void>>;\n}\n```\n\n### authMiddleware(config)\n\nCreates Next.js middleware.\n\n```ts\ninterface AuthMiddlewareConfig {\n  publicRoutes?: string[];\n  protectedRoutes?: string[];\n  ignoredRoutes?: string[];\n  signInUrl?: string;\n  afterAuth?: (auth, request) => Response | void;\n}\n```\n\n## License\n\nMIT\n","readmeFilename":"README.md"}