{"_id":"@aponia.js/adapter-prisma","_rev":"4-303629cec4f4fe2713bc76fc9b4be0b0","name":"@aponia.js/adapter-prisma","dist-tags":{"latest":"0.2.0"},"versions":{"0.0.2":{"name":"@aponia.js/adapter-prisma","version":"0.0.2","description":"aponia.js adapter prisma","license":"MIT","homepage":"https://elysium-everlasting.github.io/aponia.js","funding":"https://github.com/Elysium-Everlasting/aponia.js","contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"keywords":[],"type":"module","types":"./src/index.ts","main":"./src/index.ts","exports":{".":{"types":"./src/index.ts","require":"./src/index.ts","default":"./src/index.ts","import":"./src/index.ts"}},"typesVersions":{"*":{".":["src/index.ts"]}},"dependencies":{"@panva/hkdf":"^1.1.1","@prisma/client":"^5.6.0","cookie":"^0.5.0","defu":"^6.1.3","jose":"^4.14.4","oauth4webapi":"^2.3.0","universal-cookie":"^6.1.1","@aponia.js/core":"^0.0.2"},"devDependencies":{"@auth/core":"^0.18.1","@types/cookie":"^0.5.1","@types/universal-cookie":"^3.0.0","prisma":"^5.6.0","tsup":"^7.2.0","typescript":"^5.1.6"},"packageManager":"pnpm@8.6.12","engines":{"pnpm":"^8.0.0","node":">=18"},"publishConfig":{"access":"public"},"scripts":{"format":"prettier --write --cache .","lint":"eslint --cache .","build":"tsup","test":"vitest"},"_id":"@aponia.js/adapter-prisma@0.0.2","_integrity":"sha512-7QD9LBH5BHV/uemizhG4LTTvubWqnLGpiplkt7fId4juUp8mAmriQxq1tc/VB23s6rThJIhacFnJQvYu/5WdZA==","_resolved":"/tmp/5f3cb67f0ca3f87e4967586cfd7d25db/aponia.js-adapter-prisma-0.0.2.tgz","_from":"file:aponia.js-adapter-prisma-0.0.2.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-7QD9LBH5BHV/uemizhG4LTTvubWqnLGpiplkt7fId4juUp8mAmriQxq1tc/VB23s6rThJIhacFnJQvYu/5WdZA==","shasum":"19c5cc64185fa189accf1c96d26a56a5e6bafaf5","tarball":"https://registry.npmjs.org/@aponia.js/adapter-prisma/-/adapter-prisma-0.0.2.tgz","fileCount":13,"unpackedSize":29159,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGxwDc7N/1/0MT7Prep7XhUlEm+9w63dmZFtXKwlju1EAiEA0wjYm283l8+IBoIC0C6NNtJd61G6joY1NyaApBnJv+8="}]},"_npmUser":{"name":"ap0nia","email":"brianmv@uci.edu"},"directories":{},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-prisma_0.0.2_1700885284081_0.6257700375469639"},"_hasShrinkwrap":false},"0.1.0":{"name":"@aponia.js/adapter-prisma","version":"0.1.0","description":"aponia.js adapter prisma","license":"MIT","homepage":"https://elysium-everlasting.github.io/aponia.js","funding":"https://github.com/Elysium-Everlasting/aponia.js","contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"keywords":[],"type":"module","types":"./src/index.ts","main":"./src/index.ts","exports":{".":{"types":"./src/index.ts","require":"./src/index.ts","default":"./src/index.ts","import":"./src/index.ts"}},"typesVersions":{"*":{".":["src/index.ts"]}},"dependencies":{"@aponia.js/core":"^0.1.0"},"devDependencies":{"tsup":"^7.2.0","typescript":"^5.1.6"},"packageManager":"pnpm@8.6.12","engines":{"pnpm":"^8.0.0","node":">=18"},"publishConfig":{"access":"public"},"scripts":{"format":"prettier --write --cache .","lint":"eslint --cache .","build":"tsup","test":"vitest"},"_id":"@aponia.js/adapter-prisma@0.1.0","_integrity":"sha512-l8XJ2tYUR5V/Vpyl23p/arVnI0Mz9uIB4m/dQGbaQTrk9NVgS8jDuu+u0F0shmzL+zFpTVobI9P79oSOZlfDsg==","_resolved":"/tmp/a8bc4eadab8659526b9784cb1a22cac9/aponia.js-adapter-prisma-0.1.0.tgz","_from":"file:aponia.js-adapter-prisma-0.1.0.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-l8XJ2tYUR5V/Vpyl23p/arVnI0Mz9uIB4m/dQGbaQTrk9NVgS8jDuu+u0F0shmzL+zFpTVobI9P79oSOZlfDsg==","shasum":"f5483aec3585dd46090404e0dc00b95abbd2723f","tarball":"https://registry.npmjs.org/@aponia.js/adapter-prisma/-/adapter-prisma-0.1.0.tgz","fileCount":13,"unpackedSize":29284,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCbDASDf8Ex8R5A/EFeIQKJNPI3XlCJ7eI9jJPJJgIlUAIgUxHIpfvAwJKrs9h4JIBpBLa0TrD77XhmcTXRoDSMpr0="}]},"_npmUser":{"name":"ap0nia","email":"brianmv@uci.edu"},"directories":{},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-prisma_0.1.0_1700975717024_0.005540391771846176"},"_hasShrinkwrap":false},"0.1.1":{"name":"@aponia.js/adapter-prisma","version":"0.1.1","description":"aponia.js adapter prisma","license":"MIT","homepage":"https://elysium-everlasting.github.io/aponia.js","funding":"https://github.com/Elysium-Everlasting/aponia.js","contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"keywords":[],"type":"module","types":"./src/index.ts","main":"./src/index.ts","exports":{".":{"types":"./src/index.ts","require":"./src/index.ts","default":"./src/index.ts","import":"./src/index.ts"}},"typesVersions":{"*":{".":["src/index.ts"]}},"dependencies":{"@aponia.js/core":"^0.1.1"},"devDependencies":{"tsup":"^7.2.0","typescript":"^5.1.6"},"packageManager":"pnpm@8.6.12","engines":{"pnpm":"^8.0.0","node":">=18"},"publishConfig":{"access":"public"},"scripts":{"format":"prettier --write --cache .","lint":"eslint --cache .","build":"tsup","test":"vitest"},"_id":"@aponia.js/adapter-prisma@0.1.1","_integrity":"sha512-bMZStTPLMvuHS/Im0Rx90dsnIRLhW/2nnqOLh4JPTqqp97kjtgUR7IpRcboArd8Q0c/yiPt3LMobB4irJK9h3g==","_resolved":"/tmp/c713853a2b889bb7e38a9f513bcc6647/aponia.js-adapter-prisma-0.1.1.tgz","_from":"file:aponia.js-adapter-prisma-0.1.1.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-bMZStTPLMvuHS/Im0Rx90dsnIRLhW/2nnqOLh4JPTqqp97kjtgUR7IpRcboArd8Q0c/yiPt3LMobB4irJK9h3g==","shasum":"0a9a2d29c0c9974b183fb6e0c7c3d8d1fbeb12f9","tarball":"https://registry.npmjs.org/@aponia.js/adapter-prisma/-/adapter-prisma-0.1.1.tgz","fileCount":13,"unpackedSize":29432,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDxkvBC0DsxIKzCigj0PAa4Lu34hkGYUbZ3xNkMhp/tHwIhALOUfmg1qpFE37fUPQUttrj7tXPO0TJ0AUMHtvzvjYtb"}]},"_npmUser":{"name":"ap0nia","email":"brianmv@uci.edu"},"directories":{},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-prisma_0.1.1_1701048118691_0.5313009401971622"},"_hasShrinkwrap":false},"0.1.2":{"name":"@aponia.js/adapter-prisma","version":"0.1.2","description":"aponia.js adapter prisma","license":"MIT","homepage":"https://elysium-everlasting.github.io/aponia.js","funding":"https://github.com/Elysium-Everlasting/aponia.js","contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"keywords":[],"type":"module","types":"./src/index.ts","main":"./src/index.ts","exports":{".":{"types":"./src/index.ts","require":"./src/index.ts","default":"./src/index.ts","import":"./src/index.ts"}},"typesVersions":{"*":{".":["src/index.ts"]}},"dependencies":{"@aponia.js/core":"^0.1.2"},"devDependencies":{"tsup":"^7.2.0","typescript":"^5.1.6"},"packageManager":"pnpm@8.6.12","engines":{"pnpm":"^8.0.0","node":">=18"},"publishConfig":{"access":"public"},"scripts":{"format":"prettier --write --cache .","lint":"eslint --cache .","build":"tsup","test":"vitest"},"_id":"@aponia.js/adapter-prisma@0.1.2","_integrity":"sha512-CPxMh8l+PGkJv6SG9Jx81/FuUi27d5ywnXwYxu+j7ilY0CHRECToMIM6RxLFZMGPEfR8ys9rLqclkz98fGyZ8Q==","_resolved":"/tmp/cae49658275fa7fa7b9bb3814b5f4ef4/aponia.js-adapter-prisma-0.1.2.tgz","_from":"file:aponia.js-adapter-prisma-0.1.2.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-CPxMh8l+PGkJv6SG9Jx81/FuUi27d5ywnXwYxu+j7ilY0CHRECToMIM6RxLFZMGPEfR8ys9rLqclkz98fGyZ8Q==","shasum":"d72460b4891e762aaa8329fcd8000bf8b1770b2a","tarball":"https://registry.npmjs.org/@aponia.js/adapter-prisma/-/adapter-prisma-0.1.2.tgz","fileCount":13,"unpackedSize":30786,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF4TfzNmdI08z/Ks8sWtKPiYP1m+tLN6ABTG8gjI1XaHAiEA7yVO3IKc+WcNRl6dRc9vb3hUOdrGuwZNdm1Oo4dQg18="}]},"_npmUser":{"name":"ap0nia","email":"brianmv@uci.edu"},"directories":{},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-prisma_0.1.2_1701058840653_0.7406854900424917"},"_hasShrinkwrap":false},"0.2.0":{"name":"@aponia.js/adapter-prisma","version":"0.2.0","description":"aponia.js adapter prisma","license":"MIT","homepage":"https://elysium-everlasting.github.io/aponia.js","funding":"https://github.com/Elysium-Everlasting/aponia.js","contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"keywords":[],"type":"module","types":"./src/index.ts","main":"./src/index.ts","exports":{".":{"types":"./src/index.ts","require":"./src/index.ts","default":"./src/index.ts","import":"./src/index.ts"}},"typesVersions":{"*":{".":["src/index.ts"]}},"dependencies":{"@auth/core":"^0.18.1","@aponia.js/core":"^0.2.0"},"devDependencies":{"tsup":"^7.2.0","typescript":"^5.1.6"},"packageManager":"pnpm@8.6.12","engines":{"pnpm":"^8.0.0","node":">=18"},"publishConfig":{"access":"public"},"scripts":{"format":"prettier --write --cache .","lint":"eslint --cache .","build":"tsup","test":"vitest"},"_id":"@aponia.js/adapter-prisma@0.2.0","_integrity":"sha512-Yxkbyhct105mmfS1Yrl2BgEDqNoMl5wc1K5n+zPnuzmhXQo38xeiypnICWFv4bRp9MPRKG8c1pe0hiivsEbowQ==","_resolved":"/tmp/3ef3264a5b05d6dde662833a660ec0b1/aponia.js-adapter-prisma-0.2.0.tgz","_from":"file:aponia.js-adapter-prisma-0.2.0.tgz","_nodeVersion":"18.18.2","_npmVersion":"9.8.1","dist":{"integrity":"sha512-Yxkbyhct105mmfS1Yrl2BgEDqNoMl5wc1K5n+zPnuzmhXQo38xeiypnICWFv4bRp9MPRKG8c1pe0hiivsEbowQ==","shasum":"0d24a14cf1e73d85fd0c8d5999abef425f7ccdf6","tarball":"https://registry.npmjs.org/@aponia.js/adapter-prisma/-/adapter-prisma-0.2.0.tgz","fileCount":13,"unpackedSize":30007,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDrIELeGoPEgUGpAENdUosSv0uVuOP4iVgpWclSIouANQIgCUuGQXKtWP2NjZFM2qQC4WYsqZqLhapecQQ3pexQGD0="}]},"_npmUser":{"name":"ap0nia","email":"brianmv@uci.edu"},"directories":{},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/adapter-prisma_0.2.0_1701095970519_0.4616917734014334"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-25T04:08:03.998Z","0.0.2":"2023-11-25T04:08:04.253Z","modified":"2023-11-27T14:39:30.923Z","0.1.0":"2023-11-26T05:15:17.186Z","0.1.1":"2023-11-27T01:21:58.870Z","0.1.2":"2023-11-27T04:20:40.817Z","0.2.0":"2023-11-27T14:39:30.719Z"},"maintainers":[{"name":"ap0nia","email":"brianmv@uci.edu"}],"description":"aponia.js adapter prisma","homepage":"https://elysium-everlasting.github.io/aponia.js","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Elysium-Everlasting/aponia.js.git","directory":"packages/adapter-prisma"},"contributors":[{"name":"ap0nia","url":"https://github.com/ap0nia"}],"bugs":{"url":"https://github.com/Elysium-Everlasting/aponia.js/issues"},"license":"MIT","readme":"model Account {\n  id String  @id @default(cuid()) Uniquely identifies an account. REQUIRED.\n  userId String Associates the account with a user. REQUIRED.\n  provider String ID of the provider that's responsible for the account. e.g. \"Google\", \"GitHub\", Credentials\", etc. REQUIRED.\n  providerAccountId  String ID used by the provider to identify the account. REQUIRED\n\n  type String A terse description of the kind of account. e.g. Credentials (username/password), Email, OAuth, OIDC. OPTIONAL.\n\n  -- EVERYTHING BELOW THIS LINE IS SUPERFLUOUS --\n\n  I'm pretty sure these basically only exist depending on the provider.\n  For example, Google will provide you all three when you go through the full login cycle.\n  However, you don't need to preserve this data.\n\n  refresh_token String?  @db.Text\n  access_token       String?  @db.Text\n  id_token           String?  @db.Text\n\n  -- I think these are describing the access token, which isn't required.\n  expires_at         Int?\n  token_type         String?\n\n  -- I'm not sure why this is stored.\n  scope              String?\n\n  -- I'm not sure why this is stored.\n  session_state      String?\n}\n\n\nIn order to be logged in, a user must have a valid session.\nA valid session can be obtained by logging in with an account.\nThe verification will be done by the account's designated provider.\n\n\nA user is logged in if they provide a session token that's associated with their user ID and isn't expired.\nmodel Session {\n  id String @id @default(cuid()) Uniquely identifies the session ID. REQUIRED.\n\n  sessionToken String @unique\n  A session token that's used to uniquely identify the session.\n  I guess technically this isn't required, since the ID uniquely identifies it.\n  But ChatGPT mentions the concept of \"identifier and token separation\" that's\n  presumably applicable. So we'll just keep them separate :shrug:\n\n  Oh, but ZotMeet doesn't have it. Ok so we won't do it.\n\n  userId String Associates the session with a user, allowing them to login. REQUIRED\n\n  expires DateTime Indicates when the session is no longer valid. The user must create a new session in order to login.\n}\n\nmodel User {\n  id String @id @default(cuid())\n  name String? Descriptive info about the user. OPTIONAL.\n  image String? Descriptive info about the user. OPTIONAL.\n}\n\n# Notes\nUser is the smallest atomic unit.\nEach registered person will be associated with exactly one user entry.\n\nUsers can make multiple accounts.\nFor instance, a user can login with Google and with GitHub.\nThey have one user entry, but multiple account entries.\n\nUsers can login multiple times, each time is recorded by a session.\n\n\n## Refresh Tokens\nThe default strategy of refreshing sessions is to send a refresh token to the client to store.\nFor example, as a cookie accompanying the access token's JWT cookie.\nDuring a request, if the access token is missing or invalid, but a refresh token is available:\nthe server will decode the refresh token and verify that it hasn't expired.\n\nThe strategy is that the act of successfully decoding a refresh token\nensures its validity, so use it to create a new session.\nThe refresh token should contain the user's ID at the very minimum.\nThe refresh token is not stored in any database, it is only preserved by the client,\nand consumed by the server when needed.\n","readmeFilename":"README.md"}