Konstantin Wohlwend
16704f778c
Attempt CI fix
2025-03-12 16:50:55 -07:00
Zai Shi
5c8efbd56a
fixed fern imgs
2025-03-12 16:35:56 -07:00
Konstantin Wohlwend
4a52f52721
Fix CI
2025-03-12 14:52:54 -07:00
Konstantin Wohlwend
67dc31687f
Fix all-good for PRs
2025-03-12 14:42:12 -07:00
Moritz Schneider
6776af30fd
Active Sessions Page ( #528 )
...
<img width="1443" alt="image"
src="https://github.com/user-attachments/assets/611ede72-4d46-41dc-adea-9546c04b199a "
/>
Adds new active sessions page to settings
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Adds an active sessions page to settings, enabling users to view and
manage their sessions, with backend support for session listing and
deletion.
>
> - **Active Sessions Page**:
> - Adds `ActiveSessionsPage` component in `account-settings.tsx` to
display active sessions.
> - Allows revoking individual sessions or all sessions except the
current one.
> - **Backend Changes**:
> - Adds `sessionsCrudHandlers` in `crud.tsx` for session management
(list, delete).
> - Updates `ProjectUserRefreshToken` model in `schema.prisma` to
include `id` and `isImpersonation` fields.
> - Implements session listing and deletion in `serverInterface.ts` and
`client-app-impl.ts`.
> - **Error Handling**:
> - Introduces `CannotDeleteCurrentSession` error in `known-errors.tsx`.
> - **Testing**:
> - Adds tests for session management in
`endpoints/api/v1/auth/sessions` tests.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173 ">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral )<sup>
for ba78df0928 . It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: TheCactusBlue <thecactusblue@gmail.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-03-12 22:35:32 +01:00
Shridhar Deshmukh
85698aed70
ref: use commander for arguments parsing ( #531 )
...
- fixes https://github.com/stack-auth/stack-auth/issues/530
Adding [commander](https://github.com/tj/commander.js ) to parse CLI
arguments and options. Commander auto generates a help section based on
configured options.
Both `npx @stackframe/init-stack` and `npx @stacframe/init-stack --next`
both should initialize auth in working directory
```bash
➜ init-stack git:(dev) ✗ node dist/index.js --version
2.7.25
➜ init-stack git:(dev) ✗ node dist/index.js --help
Usage: @stackframe/init-stack [project-path] [options]
Stack Auth Initialization Tool
Arguments:
project-path Path to your project
Options:
-V, --version output the version number
--dry-run Run without making any changes
--neon Use Neon database
--js Initialize for JavaScript project
--next Initialize for Next.js project
--npm Use npm as package manager
--yarn Use yarn as package manager
--pnpm Use pnpm as package manager
--bun Use bun as package manager
--client Initialize client-side only
--server Initialize server-side only
--no-browser Don't open browser for environment variable setup
-h, --help display help for command
For more information, please visit https://docs.stack-auth.com/getting-started/setup
```
<!-- ELLIPSIS_HIDDEN -->
----
> [!IMPORTANT]
> Replaces manual CLI argument parsing with `commander` in `init-stack`,
simplifying code and auto-generating help text.
>
> - **Behavior**:
> - Replaces manual CLI argument parsing with `commander` in `index.ts`.
> - Automatically generates help and version output using `commander`.
> - Supports options like `--dry-run`, `--neon`, `--js`, `--next`,
`--npm`, `--yarn`, `--pnpm`, `--bun`, `--client`, `--server`,
`--no-browser`.
> - **Dependencies**:
> - Adds `commander` as a dependency in `package.json` and
`packages/init-stack/package.json`.
> - **Code Cleanup**:
> - Removes manual argument parsing logic from `index.ts`.
> - Simplifies `main()` function by using `commander` to handle options.
>
> <sup>This description was created by </sup>[<img alt="Ellipsis"
src="https://img.shields.io/badge/Ellipsis-blue?color=175173 ">](https://www.ellipsis.dev?ref=stack-auth%2Fstack-auth&utm_source=github&utm_medium=referral )<sup>
for 4d4e2a8324 . It will automatically
update as commits are pushed.</sup>
<!-- ELLIPSIS_HIDDEN -->
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
2025-03-12 22:17:19 +01:00
Konstantin Wohlwend
8cc3393110
GH Actions push trigger only on main or dev branches
2025-03-12 10:52:35 -07:00
Konstantin Wohlwend
bd687e8c43
Re-add pull request trigger to GH Actions
2025-03-12 10:43:36 -07:00
Konstantin Wohlwend
474dc4efe1
chore: update package versions
2025-03-12 10:28:45 -07:00
Konstantin Wohlwend
5ae3603f5e
Demo page now centers sign in component
2025-03-12 10:07:43 -07:00
Zai Shi
ae69348f52
added dev:docs
2025-03-11 17:10:28 -07:00
devin-ai-integration[bot]
cec3c78999
Update OpenAPI schema generator to support multiple status codes ( #527 )
...
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-03-10 14:50:11 -07:00
CactusBlue
ef6248dd87
Option for merging/blocking account creations with same email but different oauth provider ( #502 )
...
* Add SettingSelect component and sign-up mode configuration
* update schema
* update schema
* add merge oauth schema fields
* update test snapshots
* reformat the file
* add mergeOauthMethods in the UI
* Improve documentation with minor enhancements and fixes (#466 )
* Improve PATCH /users/me performance
* Neon domain (#488 )
* React setup docs (#491 )
* chore: update package versions
* Update branding from Stack to Stack Auth in documentation (#504 )
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
* Improve inner OAuth cookie error description
* Fix tests
* Add several spans
* Fix Next.js navigation
* chore: update package versions
* add handler config
* Fix conditional hooks in account settings page
* Add `pnpm run claude-code`
* Fixed docs image ratio (#507 )
* Documentation Updates (#508 )
* add links
* moar
* fix broken links
* fixed images
* updated readme
* Add Python SDK tab to docs
* Fix broken links
* Prefix `pnpm pre` before `pnpm dev`
* Automatically update pull request branches (#509 )
* Give PR updater more permissions
* Ignore PR merge conflicts in GH Actions
* [DEVIN: Konsti] Add userCount property to Project table with automatic update trigger (#506 )
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
* chore: update package versions
* rewrite as toMatchobject
* fix test
* test again
* fix
* update claude
* fix migrations
* fix migration
* fix types
* Update CLAUDE.md
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
* more instructions
* fix
* what was i on
* wew
* factor things
* correct the flow
* Update apps/backend/src/app/api/latest/auth/oauth/callback/[provider_id]/route.tsx
Very good catch
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* rename everything
* fix more
* fix typeerror
* update all the tests
* modify migration for legacy projects
* add loading state
* enable email verification for tests
* update test
* get a failing test
* the test works now
* remove debug console log
* change error
* no lowercase
* use typedToUpper/Lowercase
* capture err
* fix types
* modify error throw
* fixed
* add working tests
* documentation update
* Update apps/e2e/tests/backend/endpoints/api/v1/auth/oauth/merge-strategy.test.ts
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
* remove eslint rule
* fix json args
* documentation update
---------
Co-authored-by: devin-ai-integration[bot] <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
Co-authored-by: Zai Shi <zaishi00@outlook.com>
Co-authored-by: zai@stack-auth.com <zai@stack-auth.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: ellipsis-dev[bot] <65095814+ellipsis-dev[bot]@users.noreply.github.com>
2025-03-10 21:25:12 +00:00
Konstantin Wohlwend
7c3c4863ab
Fix GitHub Actions concurrency
2025-03-10 14:09:09 -07:00
Konstantin Wohlwend
1f10e26139
Fix GH Actions concurrency
2025-03-10 14:07:59 -07:00
Konstantin Wohlwend
a2dbecb606
Cancel in-progress GitHub Actions on feature branches
2025-03-10 12:14:58 -07:00
Konstantin Wohlwend
7f2a378286
Run E2E tests only once
2025-03-10 12:10:06 -07:00
Konstantin Wohlwend
e5b32013cb
Update all-good to understand neutral checks
2025-03-10 12:04:51 -07:00
Konstantin Wohlwend
37b9c19a79
chore: update package versions
2025-03-10 11:18:15 -07:00
Konstantin Wohlwend
234a3e5a51
Reduce metrics test flakeyness
2025-03-10 10:55:18 -07:00
Fern Support
4a57848248
style update for docs upgrade ( #518 )
2025-03-10 18:51:55 +01:00
Chenalejandro
8211642e2d
fixing env variable name and its description ( #511 )
...
Co-authored-by: alejandro <alejandro@localhost.localdomain>
2025-03-10 18:50:17 +01:00
Konstantin Wohlwend
ea291337cb
Generation scripts now acquire a lock
2025-03-10 10:47:10 -07:00
Moritz Schneider
da79285e7f
add opentelemetry log function and telemetry for primary_email_auth_enabled usage ( #523 )
...
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-10 08:46:36 -07:00
Zai Shi
6794a77e45
fixed formatting
All good? / all-good (push) Has been cancelled
Update pull request branches / Update pull request branches (push) Has been cancelled
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
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-09 23:06:05 -07:00
David Gomes
2171ab96f1
Allows for --no-browser in Stack Auth init command ( #521 )
2025-03-10 04:53:36 +01:00
Moritz Schneider
7eab7b3ddf
Fix #522 ( #524 )
...
* fix bug
* highlight correct item when no hash
* fix demo app page missing flex
* remove unused stuff in SidebarLayout
---------
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-09 16:02:20 -07:00
Konstantin Wohlwend
8c92ee378e
Improve getConnectedAccount error messages
2025-03-09 15:08:16 -07:00
Moritz Schneider
dcee4acc42
Fix table header buttons ( #515 )
...
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Konsti Wohlwend <n2d4xc@gmail.com>
2025-03-07 22:26:53 -08:00
Konstantin Wohlwend
d24105dd42
Use PAT for auto update
2025-03-07 14:19:08 -08:00
Konstantin Wohlwend
316233b165
Continue auto-update on error
2025-03-07 14:05:52 -08:00
Konsti Wohlwend
b41681d1e4
Reduce test flakeyness ( #517 )
All good? / all-good (push) Has been cancelled
Update pull request branches / Update pull request branches (push) Has been cancelled
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
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-07 13:34:50 -08:00
CactusBlue
63747df29e
Project Cards should use Links ( #513 )
...
* make cards clickable
* remove ClickableCard as it is no longer used anywhere
* fixed
2025-03-07 01:54:47 -08:00
Zai Shi
6a8fd6a265
fixed tests
Update pull request branches / Update pull request branches (push) Has been cancelled
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
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-05 18:05:18 -08:00
Zai Shi
7b64dd7bfe
Improve URL validation and labeling
2025-03-05 17:12:52 -08:00
Zai Shi
38c486f575
Handle unauthorized OAuth scope errors with descriptive error message
2025-03-05 14:19:54 -08:00
Zai Shi
337f8b08e6
fixed github user info api
2025-03-05 13:54:08 -08:00
Konstantin Wohlwend
af89dc7321
Remove automatic prefetch warning
2025-03-05 13:50:48 -08:00
Zai Shi
7a3ae7b5d3
fixed links
2025-03-05 10:26:56 -08:00
Konstantin Wohlwend
b973a52cd4
chore: update package versions
Update pull request branches / Update pull request branches (push) Has been cancelled
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
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Mirror main branch to main-mirror-for-wdb / lint_and_build (push) Has been cancelled
Publish Docs / run (push) Has been cancelled
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-05 09:42:18 -08:00
devin-ai-integration[bot]
271ea9b175
[DEVIN: Konsti] Add userCount property to Project table with automatic update trigger ( #506 )
...
Co-authored-by: Konstantin Wohlwend <n2d4xc@gmail.com>
2025-03-05 09:27:40 -08:00
Konstantin Wohlwend
0e17833609
Ignore PR merge conflicts in GH Actions
2025-03-05 00:03:57 -08:00
Konstantin Wohlwend
95e4827c14
Give PR updater more permissions
2025-03-05 00:01:11 -08:00
Konsti Wohlwend
d072df29d8
Automatically update pull request branches ( #509 )
2025-03-04 23:52:05 -08:00
Konstantin Wohlwend
29e40f695f
Prefix pnpm pre before pnpm dev
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
Runs E2E API Tests / build (22.x) (push) Has been cancelled
Runs E2E API Tests / build (latest) (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
Dev Environment Test / test (push) Has been cancelled
Run setup tests / test (push) Has been cancelled
TOC Generator / TOC Generator (push) Has been cancelled
2025-03-04 20:22:10 -08:00
Konstantin Wohlwend
421f5156ba
Fix broken links
2025-03-04 19:56:57 -08:00
Konstantin Wohlwend
bb8e28a275
Add Python SDK tab to docs
2025-03-04 18:24:32 -08:00
Zai Shi
92cd74670a
updated readme
2025-03-04 17:47:10 -08:00
Zai Shi
a53fa873b1
fixed images
2025-03-04 17:32:40 -08:00
CactusBlue
66d4e0ad5c
Documentation Updates ( #508 )
...
* add links
* moar
* fix broken links
2025-03-04 17:17:48 -08:00