mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 12:28:42 +00:00
refactor(server): auth (#5895)
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
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
"is-svg": "^5.0.0",
|
||||
"lodash-es": "^4.17.21",
|
||||
"nanoid": "^5.0.6",
|
||||
"next-auth": "^4.24.5",
|
||||
"socket.io-client": "^4.7.4",
|
||||
"y-protocols": "^1.0.6",
|
||||
"yjs": "^13.6.12"
|
||||
|
||||
Reference in New Issue
Block a user