github-actions[bot]
bbe1a54d7a
Version Packages ( #4316 )
...
* Version Packages
* chore: update pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2024-04-02 06:39:08 +00:00
Jiawen Geng
5a587a6c31
fix: production issue ( #4311 )
...
* fix: production issue
* Update .changeset/soft-tables-ring.md
---------
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2024-04-01 12:56:40 +00:00
github-actions[bot]
6f44c2334e
Version Packages ( #4301 )
...
* Version Packages
* pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2024-02-17 06:33:47 +00:00
Siddharth Suresh
8a417533f6
feat: remove restriction to use secure cookies in localhost ( #4300 )
...
* feat: remove restriction to use secure cookies in localhost
* changeset
* pnpm lock fix
* Update .changeset/grumpy-deers-rest.md
* Update .changeset/grumpy-deers-rest.md
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-16 23:34:36 +00:00
Siddharth Suresh
6f54841b7a
fix: getBlitzContext() can only be used in React Server Components in Nextjs 13 or higher ( #4299 )
...
* fix: remove custom errors thrown by blitz
* Create curvy-cougars-lick.md
* use require and eval rather than the await which becomes a `yield import` possibly causing the issue
* pnpm lock fix
* Update .changeset/curvy-cougars-lick.md
* add comment
* use correct error type
* Apply suggestions from code review
2024-02-16 23:27:05 +00:00
github-actions[bot]
e8f564ea66
Version Packages ( #4292 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-02-06 22:30:47 +05:30
Siddharth Suresh
dd604c7675
perf: add filter to query only non expired sessions ( #4288 )
...
* perf: add check to make sure only non expired sessions are selected by default
* remove console.logs
* Create chatty-ants-bake.md
* remove `expiresAt` from the publicData
* remove internal from changelog
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2024-02-06 16:13:32 +00:00
github-actions[bot]
a09685a63a
Version Packages ( #4283 )
...
* Version Packages
* pnpm lock fix
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2024-01-16 16:10:03 +00:00
github-actions[bot]
4ac47ff2a1
Version Packages ( #4270 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-05 11:03:08 +05:30
github-actions[bot]
0b941dc841
Version Packages ( #4268 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-03 22:32:20 +05:30
Siddharth Suresh
612aa1dd74
🎉 2.0 Stable Release ( #4264 )
...
* stable release
* pnpm lock
2024-01-02 17:52:37 +00:00
github-actions[bot]
f7735d59a3
Version Packages (beta) ( #4262 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2024-01-02 22:55:50 +05:30
Siddharth Suresh
b84c5bedbd
Next 14 Compatibility ( #4263 )
...
* upgrade to next 14
* use default react import
* use `next/compat/router`
* set baseurl for next13 app
* get it working
* fix Error Component
* fix floating promisis
* Create modern-cups-cheat.md
* fix type of error boundary
* get react query working again
* remove experimental
* remove broken test since next export is removed
* fix qm integration test
* fix mismatch of cookie names in client and server
* fix `auth-with-rpc`
* fix unit tests
* fix snapshot
* remove `@tanstack/query-core` dep from `@blitzjs/rpc`
* Update .changeset/modern-cups-cheat.md
* fix: lockfile
* regression: re-export react query client utilites
* Update .changeset/modern-cups-cheat.md
* do not export `withRouter`
* revert change to `BlitzProvider`
* remove unnecessary next types
2024-01-02 17:05:41 +00:00
github-actions[bot]
99541848b3
Version Packages (beta) ( #4258 )
...
* Version Packages (beta)
* pnpm lock fix
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-11-29 00:21:19 +05:30
Siddharth Suresh
09e0c68db9
Add logic to auto authorize role with usage of redirectAuthenticatedTo ( #4257 )
...
* add logic to auto handle role with usage of `redirectAuthenticatedTo`
* Create hot-knives-vanish.md
* fix `globalThis.__BLITZ_GET_RSC_CONTEXT` being overriden
* pnpm lock fix
2023-11-28 17:58:39 +00:00
github-actions[bot]
fb232d126e
Version Packages (beta) ( #4227 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-30 18:48:22 +05:30
Siddharth Suresh
b97366c427
Remove unintended dependency on next-auth ( #4235 )
...
* export `next-auth` and all its requirements in a sub-directory
* Create modern-insects-raise.md
* undo changes to `secure-password` adapter
* try another way
* Update .changeset/modern-insects-raise.md
* Update .changeset/modern-insects-raise.md
* patch next-auth
2023-10-30 18:41:44 +05:30
Siddharth Suresh
3bcbad1a91
invoke with RPC Logger (#4229 )
...
* add logging to rsc invoke and decouple auth from rpc again
* implement object chaining
* add `onInvokeError` options to catch errors without manual wrapping
* rename `LoggerOptions` to `RpcLoggerOptions`
* spacing
* fix error typed to `any`
* update class code
* tests working again
* add last test case proving working modal of roles
* Create moody-pandas-do.md
* Apply suggestions from code review
* blitz invoke logger
2023-10-24 18:48:11 +05:30
Siddharth Suresh
cee2dec179
Authenticate does not work with roles ( #4225 )
...
* fix logic to test the role
* add tests
* pnpm lock
* Create afraid-ligers-build.md
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-10-05 20:26:42 +05:30
github-actions[bot]
353af3fae6
Version Packages (beta) ( #4216 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-10-03 12:07:42 +05:30
Siddharth Suresh
3ddb57072b
Update location of resolve-href in next 13.5.2 ( #4222 )
...
* upgrade to next 13.5.2 and update location of internal function
* Create lucky-teachers-sleep.md
* fix bootupMarkers
* fix issues with qm integration test
* Update integration-tests/utils/next-test-utils.ts
* next.js generated stuff
* Update .changeset/lucky-teachers-sleep.md
* remove unnecessary next lints to the integration-tests
* Update main.yml
* Revert "remove unnecessary next lints to the integration-tests"
This reverts commit 3226b2e3ba .
2023-10-03 12:02:46 +05:30
github-actions[bot]
9a5ce2e8ea
Version Packages (beta) ( #4212 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-09-06 16:39:31 +05:30
github-actions[bot]
e1bffdf3d6
Version Packages (beta) ( #4197 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-08-17 23:41:49 +05:30
Siddharth Suresh
8b01175b47
blitz-auth: useAuthenticatedBlitzContext returns AuthenticatedCtx ( #4198 )
...
Co-authored-by: Brandon Bayer <b@bayer.ws >
2023-08-17 13:29:31 +05:30
Siddharth Suresh
cf393786c0
Fix CI: remove workspace from package.json ( #4196 )
2023-08-14 21:35:52 +05:30
github-actions[bot]
8255172940
Version Packages (beta) ( #4177 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-07-21 01:52:20 +05:30
Siddharth Suresh
90f1741dac
blitz-auth: Update Prisma Adapter for v5 ( #4174 )
...
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-20 22:16:28 +05:30
Datner
0ba2f4e77a
update monorepo tooling ( #4169 )
...
* chore: add nix
This could help contributers... contribute!
* build: use turborepo pipelines for coordination
instead of hacking it with sleeps and such....
* chore: update dev script
now we're cooking with gas! no more hacks, no more awkward flags
* chore: update pnpm version requirement
you want to support v6?? then use a v6-compatible pnpm version
* chore: update pnpm-lock
2023-07-12 13:13:51 +00:00
github-actions[bot]
da76acc90a
Version Packages (beta) ( #4167 )
...
* Version Packages (beta)
* pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-07-05 20:46:08 +05:30
Siddharth Suresh
c5572bec6e
blitz-auth: Fix webpack from following next-auth ( #4160 )
...
* fix webpack from following next-auth
* redo
* Create curvy-drinks-perform.md
* wrap with try catch
* fix build issue
* upgrade ci to pnpm 8
---------
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-07-03 17:36:46 +00:00
github-actions[bot]
831a493ab6
Version Packages (beta) ( #4159 )
...
* Version Packages (beta)
* updat pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-06-14 18:12:23 +00:00
Siddharth Suresh
b6b9a1c5a4
(fix) Next-Auth integration ( #4153 )
...
* fix next-auth integration
* Create small-monkeys-battle.md
* Update .changeset/small-monkeys-battle.md
* add a postinstall script for good measure
* add a postinstall script for good measure
* fix lock file
* upgrade pnpm
* fix version
* fix build error
* suggessions
* fix pnpm lock
* fix pnpm lock
* Update main.yml
* Update apps/toolkit-app/next.config.js
* next-auth working again
* Update apps/toolkit-app/.env
* Update packages/blitz-auth/src/server/auth-sessions.ts
* Update packages/blitz-auth/src/server/auth-sessions.ts
2023-06-14 22:54:48 +05:30
github-actions[bot]
d25c965bc8
Version Packages (beta) ( #4144 )
...
* Version Packages (beta)
* pnpm lock
* fix worlfow pnpm version
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-06-09 23:54:35 +05:30
Siddharth Suresh
1bb3a65566
(fix): Stop exporting useAuthenticatedBlitzContext from @blitzjs/auth ( #4157 )
...
* Remove unnecessary exports from @blitzjs/auth
* add changeset
* allow exporting getBlitzContext as we need it for blitz rpc
* Update .changeset/moody-crews-travel.md
---------
Co-authored-by: Brandon Bayer <b@bayer.ws >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-06-09 17:01:55 +00:00
Siddharth Suresh
5166e5e037
(feat) upgrade tslog ( #4154 )
...
* upgrade tslog
* Create big-turtles-tease.md
* pnpm lock
* fix build issue
* upgrade pnpm in the lock file to v8
* try again
* Update main.yml
* fix build
* fix
* again
* fix spacing
2023-06-05 21:11:34 +05:30
github-actions[bot]
5a64f1c39c
Version Packages (beta) ( #4135 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-05-01 23:33:32 +05:30
Siddharth Suresh
29c2b029ac
Fix: Add missing entry to expose next-auth adapter ( #4133 )
2023-04-19 23:45:39 +05:30
github-actions[bot]
3e8f04ed03
Version Packages (beta) ( #4121 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-04-10 19:24:42 +05:30
Siddharth Suresh
e82a79be50
Update the version of next in the new template from 13.2 to 13.3.0 ( #4120 )
...
Co-authored-by: Brandon Bayer <b@bayer.ws >
2023-04-10 18:45:54 +05:30
github-actions[bot]
9f316d73f5
Version Packages (beta) ( #4111 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-04-03 19:26:36 +05:30
github-actions[bot]
f2da4f1516
Version Packages (beta) ( #4083 )
...
* Version Packages (beta)
* pnpm lock
---------
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-03-31 23:30:39 +05:30
Brandon Bayer
acc07ce943
Fix Next 13.2 compatibility ( #4108 )
...
* make everything work with next 13.2
* changeset
* update test
* fix test
2023-03-30 20:20:30 +00:00
Siddharth Suresh
37aeaa7fa2
feature: Nextjs 13 App Directory Utility Methods ( #4103 )
...
* working
* fix toolkit app
* fix add directive
* add back secure password
* changeset
* improve blitz rpc structure
* make it work
* fix most integration tests
* fix the tests
* fix import error
* fix unit test
* fix tests
* remove breaking changes
* remove another breaking change
* fix typescript declaration
* fix errorboundary redirect issues
* cleanup
* upgrade to next13
* update pnpm-lock
* add Server Plugin Export
* fix lint error
* fix build errors
* fixes
* Solve NextRouter is not mounted
* fix
* fix issues
* pnpm lock fix
* rename session function and add auth utility
* remove potential implicit warning
* fix deps and cleanup
* fix secure-password missing file
* fix possibility of crsf token cookie being null
* remove secure-password breaking changes
* Update cuddly-singers-perform.md
* rename functions and remove headers
* Revert "remove secure-password breaking changes"
This reverts commit abccf93d0c .
* unsupported auth methods in react server components
* remove authorizedContext: To be done in another PR
* add integration test for app dir
* fix duplicate package name
* Revert "remove authorizedContext: To be done in another PR"
This reverts commit 46fe8afab9 .
* pnpm lock
* integration test
* remove empty then and add void operator
* add new invokeResolver function
* fix bug in useAuthenticatedBlitzContext
* Create .changeset/tall-radios-clean.md
* overload the invoke function for the new RSC usecase
* invoke works without implicit passing of arguments
* fix pnpm lock
2023-03-29 19:05:46 +05:30
Siddharth Suresh
cadefb88e4
feature: Next 13 App directory ( #4079 )
...
* working
* fix toolkit app
* fix add directive
* add back secure password
* changeset
* improve blitz rpc structure
* make it work
* fix most integration tests
* fix the tests
* fix import error
* fix unit test
* fix tests
* remove breaking changes
* remove another breaking change
* fix typescript declaration
* fix errorboundary redirect issues
* cleanup
* upgrade to next13
* update pnpm-lock
* add Server Plugin Export
* fix lint error
* fix build errors
* fixes
* Solve NextRouter is not mounted
* fix
* fix issues
* pnpm lock fix
* rename session function and add auth utility
* remove potential implicit warning
* fix deps and cleanup
* fix secure-password missing file
* fix possibility of crsf token cookie being null
* remove secure-password breaking changes
* Update cuddly-singers-perform.md
* rename functions and remove headers
* Revert "remove secure-password breaking changes"
This reverts commit abccf93d0c .
* unsupported auth methods in react server components
* remove authorizedContext: To be done in another PR
* add integration test for app dir
* fix duplicate package name
* integration test
* remove empty then and add void operator
* fix pnpm lock
2023-03-24 11:10:36 +05:30
Siddharth Suresh
6f18cbdc98
feature: Next Auth Adapter ( #4046 )
...
* initial working
* add user side callback control
* connect to blitz-auth
* better error handling
* initial working after submodule
* Create fast-adults-guess.md
* add submodule init and update to workflow
* remove internal folder
* cleanup
* ignore tests from next-auth
* add redirectUrl config and maintin consistency
* move required files back to internals folder
* remove submodule cloning
* Patch NextAuth
another time
fix import issue
fix import
add path imports for the adapters
Revert "add to blitz-auth"
This reverts commit 246e62faa5a451aad9f4a2530a159ca3457b8b75.
add to blitz-auth
pnpm lock fix
cleanup
fix codegen
remove nextauth submodule and internal folder and patch nextauth
* Revert "Patch NextAuth"
This reverts commit 31888fc643 .
* switch
* DRY
* optional peerDependency
* Delete .gitmodules
* make it work with webpack alias
* fix
* split to new path
* undo unnecessary changes
* more fixes
* add strong typing to nextauth adapter (#4104 )
* add strong typing to nextauth adapter
* cleanup
---------
Co-authored-by: Brandon Bayer <b@bayer.ws >
2023-03-24 09:07:11 +05:30
Siddharth Suresh
9529dbd6f4
Make secure password completely optional ( #4085 )
...
* secure-password breaking changes
* fix
* more fixes
* fix secure-password imports
* add codemod
* add secure-password to auth integration test
* Apply suggestions from code review
* try adding playwrigth to package.json
* without server mode
* add one to fix conficting ports
* another try
* add waitPort in the right place
* use same port
* manually kill the process
* remove the server mode
* cleanup
2023-03-18 16:48:08 +05:30
Marcus Reinhardt
6e88a847fe
fix: vulnerabilities in @blitz/auth ( #4082 )
...
* fix vulnerabilities
* Update .changeset/strong-chicken-study.md
---------
Co-authored-by: Brandon Bayer <b@bayer.ws >
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
2023-02-13 10:20:10 +00:00
github-actions[bot]
6374f2ff0c
Version Packages (beta) ( #4055 )
...
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Siddharth Suresh <siddh.suresh@gmail.com >
2023-02-09 21:44:34 +05:30
Siddharth Suresh
3fa3c70b39
internal: Readme for the packages ( #4052 )
2023-02-07 15:14:58 +07:00
Siddharth Suresh
42a2cf951a
Add secure-password as an Optional peerDependency ( #4067 )
...
Co-authored-by: Brandon Bayer <b@bayer.ws >
2023-02-06 19:11:42 +05:30