AFFiNE/packages/backend/server/tests
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
..
utils refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
app.e2e.ts refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
auth.e2e.ts refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
cache.spec.ts refactor(server): folder structure (#5573) 2024-01-12 04:18:39 +00:00
config.spec.ts refactor(server): reorganize server configs (#5753) 2024-02-02 08:32:07 +00:00
doc.spec.ts fix(server): doc upsert without row lock (#5765) 2024-02-01 09:49:02 +00:00
feature.spec.ts refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
graphql.spec.ts refactor(server): server errors (#5741) 2024-01-31 08:43:03 +00:00
history.spec.ts refactor(server): plugin modules (#5630) 2024-01-22 07:40:28 +00:00
mailer.e2e.ts refactor(server): auth (#5895) 2024-03-12 10:00:09 +00:00
mailer.spec.ts refactor(server): import prisma from @prisma/client (#5863) 2024-02-22 07:46:57 +00:00
quota.spec.ts feat: add business blob limit (#5734) 2024-01-29 08:32:35 +00:00
sync.spec.ts fix(server): node imports order (#5583) 2024-01-14 05:47:56 +00:00
tsconfig.json refactor(infra): directory structure (#4615) 2023-10-18 15:30:08 +00:00
user.e2e.ts fix(server): node imports order (#5583) 2024-01-14 05:47:56 +00:00
workspace-blobs.spec.ts refactor(server): plugin modules (#5630) 2024-01-22 07:40:28 +00:00
workspace-invite.e2e.ts refactor(server): plugin modules (#5630) 2024-01-22 07:40:28 +00:00
workspace.e2e.ts fix(server): node imports order (#5583) 2024-01-14 05:47:56 +00:00