mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 20:38:52 +00:00
Remove `next-auth` and implement our own Authorization/Authentication system from scratch.
## Server
- [x] tokens
- [x] function
- [x] encryption
- [x] AuthController
- [x] /api/auth/sign-in
- [x] /api/auth/sign-out
- [x] /api/auth/session
- [x] /api/auth/session (WE SUPPORT MULTI-ACCOUNT!)
- [x] OAuthPlugin
- [x] OAuthController
- [x] /oauth/login
- [x] /oauth/callback
- [x] Providers
- [x] Google
- [x] GitHub
## Client
- [x] useSession
- [x] cloudSignIn
- [x] cloudSignOut
## NOTE:
Tests will be adding in the future
35 lines
807 B
JSON
35 lines
807 B
JSON
{
|
|
"name": "@affine/workspace-impl",
|
|
"private": true,
|
|
"main": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts"
|
|
},
|
|
"peerDependencies": {
|
|
"@blocksuite/blocks": "*",
|
|
"@blocksuite/global": "*",
|
|
"@blocksuite/store": "*"
|
|
},
|
|
"dependencies": {
|
|
"@affine/debug": "workspace:*",
|
|
"@affine/electron-api": "workspace:*",
|
|
"@affine/env": "workspace:*",
|
|
"@affine/graphql": "workspace:*",
|
|
"@toeverything/infra": "workspace:*",
|
|
"idb": "^8.0.0",
|
|
"idb-keyval": "^6.2.1",
|
|
"is-svg": "^5.0.0",
|
|
"lodash-es": "^4.17.21",
|
|
"nanoid": "^5.0.6",
|
|
"socket.io-client": "^4.7.4",
|
|
"y-protocols": "^1.0.6",
|
|
"yjs": "^13.6.12"
|
|
},
|
|
"devDependencies": {
|
|
"fake-indexeddb": "^5.0.2",
|
|
"vitest": "1.3.1",
|
|
"ws": "^8.16.0"
|
|
},
|
|
"version": "0.12.0"
|
|
}
|