liuyi
fb3a0e7b8f
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
2024-03-12 10:00:09 +00:00
..
2023-12-05 18:00:42 +08:00
2024-03-12 10:00:09 +00:00
2023-12-21 07:58:16 +00:00
2024-03-06 18:25:26 +08:00
2024-02-29 03:34:02 +00:00
2023-11-15 07:46:50 +00:00
2023-11-15 07:46:50 +00:00
2024-01-31 15:19:32 +00:00
2023-11-29 10:11:32 +00:00
2023-12-27 02:49:59 +00:00
2024-01-22 10:25:33 +00:00
2024-03-06 18:25:37 +08:00
2024-03-11 02:25:33 +00:00
2023-12-26 12:40:10 +00:00
2024-02-01 14:33:25 +00:00