{"_id":"@aflabs/afauth","_rev":"9-a97c21511377f2abf679208b29d1ed8e","name":"@aflabs/afauth","dist-tags":{"latest":"0.1.1"},"versions":{"0.0.1":{"name":"@aflabs/afauth","version":"0.0.1","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.1","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"2adfe4384e237b15eabd1235ad44fe68289bc2fb","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.1.tgz","fileCount":17,"integrity":"sha512-21itd68KN6CeQmoxn96vQ1Y0J7izzloLy8vbTIvG8BABdPWR1tHjgcMupEOE3DbOBYa+KuxJwrVLj41VoTz1Mw==","signatures":[{"sig":"MEUCIEe+Q8z3V6Ok4uwbMvuCDc2BNlqyLzXWJs79Mep8EhPCAiEAviZoWyZHjudNe+dDuDTFWBiA60fdvWyllPtNyyU46KE=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69175},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"8f854a91bd54cfb52411416e36118a2f5ab65972","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.1_1683537456148_0.15711168941840992","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@aflabs/afauth","version":"0.0.2","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.2","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"980b399af9f1f64a53604b4848aa029c5c9b3236","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.2.tgz","fileCount":17,"integrity":"sha512-ZXLKYnmzJaDf0lL3P82mCT+zJd9dIQZgtlCpyyOT7VOCekblgSrZKWQUgs+4GbC67iCfkMxGWnsZ4y6AoryLZg==","signatures":[{"sig":"MEQCIEeDNEUR3hTEeR63dhnwAcSuqRD9q3R+TkkF3Ikx/z3wAiBOfRUeZU0XLxfQMsZiho7ICMgUlgPR0SzT33Sm1VWVZQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":69284},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"a77a34e7f7d14895f5f2c089cfe46e23b79c85f2","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.2_1683538564543_0.9949044488105581","host":"s3://npm-registry-packages"}},"0.0.4":{"name":"@aflabs/afauth","version":"0.0.4","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.4","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"2c66920c2c1b58d17c4652a8e41445bbe98b527f","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.4.tgz","fileCount":17,"integrity":"sha512-AmcCWQbmRz9WsWqkLD0Wof+SHog72Mnux06LVXlq/3e80Uxkps7esd8jCg0rs2BSF4tixWcb5ygFEcwhaK4hzg==","signatures":[{"sig":"MEUCIE1Vtu1pMclTkJrV6JDwmUFX/+48Rw+1JTAE2RsLJWGhAiEAlFEBVReP9+6wKE1WEjrrmadL0yNX75PoMMYK1pmLCKk=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102658},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"8f278976873d046c02288c770fb6e03b9b750b67","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.4_1685519799919_0.48553883075252346","host":"s3://npm-registry-packages"}},"0.0.5":{"name":"@aflabs/afauth","version":"0.0.5","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.5","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"79b34c30d110986110d6af0ee60cb5d151554fcb","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.5.tgz","fileCount":17,"integrity":"sha512-4qVynaeBAFH5IHzQU8X/XE2dmgnCbbgsoNuVB01g3SqXAFR77hc2t0iL3S1EASdNYyPxjpM45f6rV5NW8nGwxA==","signatures":[{"sig":"MEQCIGjOt84oxRMWEpK3RHo8eajb+gMPYGxypLrn5dmCK4R+AiAAou6xewk5lxQHutqPzOp/vHHMtVTnot6b3awSiah/cA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102508},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"1fa12b1f3c7845d7088c8667132fc73cc69935ed","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.5_1685971170513_0.8833368868435656","host":"s3://npm-registry-packages"}},"0.0.6":{"name":"@aflabs/afauth","version":"0.0.6","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.6","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"f8d92e8776fca7b5ebc1b36728aba954a231c1bc","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.6.tgz","fileCount":17,"integrity":"sha512-x6FDCospBmlAayKaF1oKhrgP3XNJywKNPbUbAuLlfClTo8HlRNFnVb9i8QbI0wjALsdAxIobO9XjjxvaqQGKvQ==","signatures":[{"sig":"MEYCIQCZCZDW66zrctEgVBvX2luoGrrCEUWZRk7mUslcyG7/igIhAMvhdaiPYMAZrZ3FZRn/jhEivOeWpsIYxthG3Dpu5svJ","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102508},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"bb4a0754d7e8dd891a7b1e11e01af2649ce4cb2b","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.6_1686040180264_0.08221572417413592","host":"s3://npm-registry-packages"}},"0.0.7":{"name":"@aflabs/afauth","version":"0.0.7","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.7","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"1dc7013353cbb30e970f79577067666d17bdec5b","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.7.tgz","fileCount":17,"integrity":"sha512-31wWgQTEHW9yBEyv1OaAGptJxqjiDFJkV2srxfnqZaed5QjVy36esdKrNT+05Hv5cd9XGCvcC6dLRTL0TWOc6Q==","signatures":[{"sig":"MEUCIQDIZkL6YdNeNGP8bE+fk1oLpfeecg1MakhN5fin5MMGbwIgQLcLlmG0DBeayymVq8Twe7D0I4LYidq1j6S296CFJ4M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":102508},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"88bab8d441337ccaed86f52b1d0297889fbc3a38","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.7_1686040776770_0.9236194135032332","host":"s3://npm-registry-packages"}},"0.0.8":{"name":"@aflabs/afauth","version":"0.0.8","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.8","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"cd048ee43030db053b732fa3f4b2a23cdeec1d6b","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.8.tgz","fileCount":17,"integrity":"sha512-OLl9cpWCxjIgQ3xaqKkjA4RTIEn8hNH5vqRdsMatxZa1iyBqXBCfX8Q+26kOTgeP0XyoeqgIDnRMp0dW+wnpsw==","signatures":[{"sig":"MEYCIQDNfNtpefpeujeqtmTq8rnE677DjLXV31RbDErcKkV/KwIhANgFDfL/QPjexuvI8Jo28gZEI/mR94pMnIACzRxuI47D","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":95633},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"6651debda103a7cebe997fb708651aa70ef863bd","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"9.5.0","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.14.2","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.8_1686051442552_0.23359546111322338","host":"s3://npm-registry-packages"}},"0.0.9":{"name":"@aflabs/afauth","version":"0.0.9","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.0.9","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"9a82c6e042854ebbb790f1b7845d3c1105c07281","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.0.9.tgz","fileCount":17,"integrity":"sha512-z0vQtS0pX6A4Ib/4bsEdigQs+ZvHLpHGmg0Zy/Szh+ykJ+oxYcj/+UKUgHlUHj72du7J80v5Q+UuglZ8V3J/tw==","signatures":[{"sig":"MEQCIBUZcDTg76cf/hw2RgfiKR2IVxrMofEJRqXtk+wuvtBxAiB3PohAXy1y5NCj3+PTeLqV4bAxxf5k33ioyeddp1ddVw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":95988},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"2eb1904ba7dfde8f73a9066b882f52d137236775","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"10.2.4","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^3.1.2","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.0.9_1718266408245_0.3757593224410576","host":"s3://npm-registry-packages"}},"0.1.0":{"name":"@aflabs/afauth","version":"0.1.0","keywords":["authentication","nextjs","DRF"],"author":{"name":"AFLabs d.o.o."},"license":"MIT","_id":"@aflabs/afauth@0.1.0","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"dist":{"shasum":"c43193b0186ed489a72c0092427929fac1583cde","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.1.0.tgz","fileCount":17,"integrity":"sha512-6Yn9P035Dla/wOUAGlVDEHoJZa8/pukaQY5qzcnPf9F7jGh9caBz7pCigC562HUuZn4JdvhnAfv8LPXDnx7qyA==","signatures":[{"sig":"MEUCIQCWl9FdhWiU0ZMqKvW8TClwujeo7ecP18/9eFqeOkVDMQIgGDtjlQ5kWz43rrusAKLs2g/KudDd7fK6yoXyHI5U/0A=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":93158},"main":"dist/cjs/index.js","types":"dist/index.d.ts","module":"dist/esm/index.js","gitHead":"89067b7fa2ed1a2f9869d21474c9d6a24c483ce6","scripts":{"build":"rollup -c","watch":"rollup -c -w","prepare":"install-peers","prebuild":"rm -rf dist","check-types":"tsc"},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"_npmVersion":"10.2.4","description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","directories":{},"_nodeVersion":"18.19.1","_hasShrinkwrap":false,"devDependencies":{"tslib":"^2.5.0","rollup":"^3.21.3","typescript":"^5.0.4","install-peers-cli":"^2.2.0","rollup-plugin-dts":"^5.3.0","@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-typescript":"^11.1.0","@rollup/plugin-node-resolve":"^15.0.2","rollup-plugin-peer-deps-external":"^2.2.4","@types/rollup-plugin-peer-deps-external":"^2.2.1"},"peerDependencies":{"next":"^13.4.0","axios":"^1.4.0","react":"^18.2.0","cookie":"^0.5.0","react-dom":"^18.2.0","jwt-decode":"^4.0.0","@types/cookie":"^0.5.1"},"_npmOperationalInternal":{"tmp":"tmp/afauth_0.1.0_1726728619811_0.37523339036324166","host":"s3://npm-registry-packages"}},"0.1.1":{"name":"@aflabs/afauth","version":"0.1.1","author":{"name":"AFLabs d.o.o."},"license":"MIT","main":"dist/cjs/index.js","module":"dist/esm/index.js","types":"dist/index.d.ts","repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"keywords":["authentication","nextjs","DRF"],"scripts":{"prebuild":"rm -rf dist","build":"rollup -c","watch":"rollup -c -w","check-types":"tsc","prepare":"install-peers"},"devDependencies":{"@rollup/plugin-commonjs":"^24.1.0","@rollup/plugin-node-resolve":"^15.0.2","@rollup/plugin-typescript":"^11.1.0","@types/rollup-plugin-peer-deps-external":"^2.2.1","install-peers-cli":"^2.2.0","rollup":"^3.21.3","rollup-plugin-dts":"^5.3.0","rollup-plugin-peer-deps-external":"^2.2.4","tslib":"^2.5.0","typescript":"^5.0.4"},"peerDependencies":{"@types/cookie":"^0.6.0","axios":"^1.7.7","cookie":"^0.6.0","jwt-decode":"^4.0.0","next":"^13.4.0","react":"^18.2.0","react-dom":"^18.2.0"},"description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","_id":"@aflabs/afauth@0.1.1","gitHead":"68f2d0c6781a11c596a2cf2193fad9ef390d7078","_nodeVersion":"18.19.1","_npmVersion":"10.2.4","dist":{"integrity":"sha512-NpCdupxP01k4x/K+B9MEtfdVINjhDEeRo54YGBxkH63hC3153/BYqTwiMxyAmMNrnQ1gTfPI02b+ZnnT4w0i/Q==","shasum":"39872396354405768858fe846e541fb1839b30b4","tarball":"https://registry.npmjs.org/@aflabs/afauth/-/afauth-0.1.1.tgz","fileCount":17,"unpackedSize":93158,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHH0DtnUEZdSw46gkgcF3H0dpDgFoWAGFQP9laPdCt5zAiEAt5u+ZFvdVtVZcnFj9U3mBXwJKBPvF9TlRS7rqrcTKwM="}]},"_npmUser":{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},"directories":{},"maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/afauth_0.1.1_1726729239279_0.8711900338380298"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-08T09:17:36.074Z","modified":"2024-09-19T07:00:39.700Z","0.0.1":"2023-05-08T09:17:36.344Z","0.0.2":"2023-05-08T09:36:04.751Z","0.0.4":"2023-05-31T07:56:40.141Z","0.0.5":"2023-06-05T13:19:30.668Z","0.0.6":"2023-06-06T08:29:40.505Z","0.0.7":"2023-06-06T08:39:36.964Z","0.0.8":"2023-06-06T11:37:22.746Z","0.0.9":"2024-06-13T08:13:28.377Z","0.1.0":"2024-09-19T06:50:19.948Z","0.1.1":"2024-09-19T07:00:39.458Z"},"author":{"name":"AFLabs d.o.o."},"license":"MIT","keywords":["authentication","nextjs","DRF"],"repository":{"url":"https://git.aflabs.org/public_af_libs/afauth","type":"git"},"description":"This library is intended to be uses as internal library for next.js authentication on the frontend and DRF on the backend. For now it only supports access tokens. It specifically works with our backend setup.","maintainers":[{"name":"obrezagregor","email":"gregor.obreza@aflabs.si"},{"name":"lukaavbreht","email":"luka.avbreht@aflabs.si"},{"name":"matej.janezic","email":"matej.janezic@aflabs.si"}],"readme":"# AFauth package\n\nThis library is intended to be uses as internal library in AFLabs. We use next.js on the frontend and DRF on the backend. Whit this library we can easily manage user session in next.js. For now it only supports access token. It specifically works with our backend setup. \n\nTo use it in next.js first install:\n```bash\nyarn add @aflabs/afauth axios cookie @types/cookie jwt-decode\n```\n\nThen create new directory in ```pages/api```  called ```afAuth``` and in it add file ```[...afAuth].ts```(example configuration):\n\n```bash\nexport const afAuthOptions: IAfOptions = {\n  logInPage: \"/login\",\n  redirectToPage: \"/\",\n  apiBaseUrl: \"/backend-api\",\n  loginApiUrl: `${process.env.BACKEND_URL}/api/auth/token/login`,\n  tokenValidityUrl: `${process.env.BACKEND_URL}/api/auth/token/verify`,\n  refreshTokenApiUrl: \"/auth/token-refresh\",\n  protectedPages: [],\n  expFromJwt: true,\n  accessTokenExpiryTime: 60 * 60 * 24,\n  refreshTokenExpiryTime: 60 * 60 * 24 * 2,\n  cookieSameSiteAttribute: \"lax\"\n};\n\nexport default AfAuth(afAuthOptions);\n```\n\nHere we define afAuthOptions and export function ```AfAuth```.\n\nTo protect pages and to add access token to header when requesting our backed, we use next.js middleware. We create ```middleware.ts``` and add (example configuration):\n\n```bash\nexport async function middleware(request: NextRequest, event: NextFetchEvent) {\n  // access only cookie\n  return await accessTokenOnly(request);\n}\n\n//TODO add protected pages in matcher\nexport const config = {\n  matcher: [\"/backend-api/:path*\", \"/login\", \"/account\", \"/apps\"],\n  // workouround to get it working\n  unstable_includeFiles: [\n    \"node_modules/next/dist/compiled/@edge-runtime/primitives/**/*.+(js|json)\",\n  ],\n};\n```\nIn matcher array we add pages or backend that we want to protect. ","readmeFilename":"README.md"}