Commit Graph

99 Commits

Author SHA1 Message Date
Konsti Wohlwend
f2f1b9df82
Tenancies (#418)
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-02-07 22:54:04 -08:00
Konstantin Wohlwend
59d4d4d338 Fix build 2025-01-31 18:28:47 -08:00
Konstantin Wohlwend
66bf1d0494 Show JWT expiresAt in 401 error message 2025-01-31 18:24:45 -08:00
Zai Shi
d90128e44a added EENVELOPE error 2025-01-31 17:11:42 -08:00
Zai Shi
38494003f0 added ETIMEOUT for email errors 2025-01-31 16:39:59 -08:00
Konstantin Wohlwend
4e03a16f4b Fix STACK-BACKEND-63 2025-01-13 10:51:56 -08:00
Konstantin Wohlwend
b7d4277510 Error when sending email takes too long 2025-01-13 10:36:40 -08:00
Konsti Wohlwend
cf95bb707f
Raw project query (#382) 2024-12-28 11:47:09 -08:00
Konsti Wohlwend
8ce7c9f079
Raw SQL query for fetching users (#381) 2024-12-27 11:31:12 -08:00
Konstantin Wohlwend
e5374acca6 Better traceSpan signature
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
2024-12-24 23:45:40 -08:00
Konstantin Wohlwend
8080134595 More OTel spans 2024-12-24 17:45:19 -08:00
Konstantin Wohlwend
a183bcca07 Address TODO next-release comments 2024-12-23 20:03:50 -08:00
Konstantin Wohlwend
4199f929bf object-curly-spacing rule 2024-12-23 19:37:05 -08:00
Zai Shi
534fef5d62
Added custom SMTP email server testing on the dashboard (#376)
Some checks failed
Ensure Prisma migrations are in sync with the schema / check_prisma_migrations (22.x) (push) Has been cancelled
Docker Build and Push / Docker Build and Push Server (push) Has been cancelled
Docker Test / docker (push) Has been cancelled
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-12-20 19:04:05 +01:00
Konstantin Wohlwend
3e1a901c37 Turbopack for backend 2024-12-17 18:12:03 -08:00
Zai Shi
cf0e6b9d63
Fixed permission filtering (#373) 2024-12-17 22:58:57 +01:00
Konstantin Wohlwend
3c711c31d1 Rename retryTransaction 2024-12-12 14:01:26 -08:00
Konstantin Wohlwend
c33ce8ab4f Retry Prisma transactions automatically 2024-12-12 13:34:42 -08:00
Zai Shi
465c214f27 removed duplicated logic 2024-12-12 10:27:52 -08:00
Zai Shi
e07142f086
Neon webhook create (#368) 2024-12-12 19:18:25 +01:00
Konstantin Wohlwend
6ecbdab019 More email retry logic 2024-12-12 10:02:32 -08:00
Konstantin Wohlwend
257ec46244 Fix build 2024-12-11 20:37:42 -08:00
Konstantin Wohlwend
49445378eb Retry on Svix rate limits 2024-12-11 17:56:07 -08:00
Konstantin Wohlwend
b0db0a5f78 StackAssertion cause is now in extraData 2024-12-11 17:36:43 -08:00
Konstantin Wohlwend
62989f9783 Better email retries 2024-12-11 16:15:58 -08:00
Konsti Wohlwend
0413706c39
Upgrade backend to Next.js 15 (#360) 2024-12-10 00:11:13 -08:00
Konstantin Wohlwend
cf92542b3b Even more reliable emails 2024-12-09 18:10:13 -08:00
Konstantin Wohlwend
860266bd2d Even more reliable emails 2024-12-09 18:08:56 -08:00
Konsti Wohlwend
22676c563b
Neon project provision (#358) 2024-12-08 11:44:35 -08:00
Konstantin Wohlwend
27914c15ce Retry on INFINITE_LOOP_DETECTED error 2024-12-05 20:18:30 -08:00
Konsti Wohlwend
cec718f542
Identity Provider/External OAuth (#323)
Co-authored-by: moritz <moritsch@student.ethz.ch>
2024-11-30 23:27:55 -08:00
Zai Shi
8f73e99389
Endpoints for Neon integration (#351)
/integrations/api-keys
/integrations/oauth-providers
2024-11-27 12:30:20 +01:00
Konstantin Wohlwend
128a0897c9 More reliable emails 2024-11-23 23:52:40 +01:00
Konstantin Wohlwend
01eddd99a1 Return error when adding auth contact channel in use by another account
Some checks failed
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-11-21 23:18:44 +01:00
Konstantin Wohlwend
ac9a85317c Stricter email input validation 2024-11-21 22:41:22 +01:00
Konstantin Wohlwend
bc24b41f61 Replace required() of yup schemas with defined() 2024-11-18 20:08:55 +01:00
Konsti Wohlwend
3b18f09ec7
Log geoip information with events (#344) 2024-11-17 18:07:36 +01:00
Zai Shi
fd8d166e04
Query/filtering with list users endpoint (#314) 2024-10-30 02:16:39 +01:00
Moritz Schneider
93a1fcf7cb
Passkey support (#321)
* passkeys

* add passkey tests

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-10-28 16:56:46 -07:00
Zai Shi
3ba900fc30 Revert "added filtering params"
This reverts commit 93c89a0392.
2024-10-21 13:20:48 -07:00
Zai Shi
93c89a0392 added filtering params 2024-10-21 13:10:15 -07:00
Zai Shi
73641dd0d0 removed test code 2024-10-16 19:36:48 -07:00
Zai Shi
2ad9247ab0
Added waitUtil for analytics/webhooks so it is non-blocking (#303)
Some checks failed
Runs E2E API Tests / build (20.x) (push) Has been cancelled
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Lint & build / lint_and_build (20.x) (push) Has been cancelled
Lint & build / lint_and_build (22.x) (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2024-10-17 04:15:21 +02:00
Zai Shi
18d75fbf21
Contact channel APIs (#288)
* removed contact channels from otp

* fixed types

* fixed bugs

* fixed bug

* fixed bugs

* updated user contact channel

* updated tests

* updated tests

* added unique key to otp and password auth

* added contact channel api

* added new send-verification-code route

* updated tests

* added contact channel create tests, fixed bug

* added more tests, removed update

* added more tests

* added more tests

* added more tests

* fixed typecheck

* fixed route structure

* fixed bugs, fixed tests

* added more tests

* added more tests

* fixed tests

* fixed tests

* implemented new merge account logic

* moved user create of otp sign in to after the first email verification

* added cc updates

* fixed bugs

* added more tests

* added more flows

* uncomment tests

* added primary updates

* Update apps/e2e/tests/backend/endpoints/api/v1/contact-channels/legacy-send-verification-code.test.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* Update apps/e2e/tests/backend/endpoints/api/v1/auth/otp/sign-in.test.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* updated test names

* Update apps/e2e/tests/backend/endpoints/api/v1/auth-flows.test.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* Update apps/e2e/tests/backend/endpoints/api/v1/auth-flows.test.ts

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* Update apps/backend/src/app/api/v1/auth/oauth/callback/[provider_id]/route.tsx

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>

* fixed lint

* fixed lint

* fix lint

---------

Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2024-10-14 02:12:56 +02:00
Konstantin Wohlwend
9da481b2cd Require newline at the end of each file 2024-10-13 13:06:38 -07:00
Konstantin Wohlwend
e762832938 ensureTeamExist -> ensureTeamExists 2024-10-13 13:03:22 -07:00
Konstantin Wohlwend
f7e56a8f34 Replace typo in function name (ensureUserExist -> ensureUserExists) 2024-10-13 13:01:24 -07:00
Konstantin Wohlwend
f10f03c3b3 Add otel spans for sent emails 2024-10-11 17:52:47 -07:00
Zai Shi
a785d47417
Project specific JWKs (#293)
* added per project signing

* added well-known/jwks.json

* fixed bugs

* fixed bugs

* fixed tests

* fixed not found error
2024-10-07 21:27:55 +02:00
Zai Shi
06fcca6fe6
OTP (#263)
* fixed otp send email template

* added version

* added send response type

* updated email template

* added otp email

* added otp page

* fixed bugs

* fixed bugs, added back button on otp page

* otp works

* added max attempts per nonce code

* fixed error return type

* fixed tests

* fixed bugs

* updated button text

* added tests

* added totp code error handling

* removed console.log

* fixed verification code length

* fixed code length

* moved otp inside magic link sign in component

* changed version back, updated ui wording

* added old version otp email tests

* fixed tests
2024-09-24 20:02:06 +02:00