Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
469 changes: 228 additions & 241 deletions .pnp.cjs

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
compressionLevel: mixed

defaultSemverRangePrefix: ""
defaultSemverRangePrefix: ''

enableGlobalCache: true

globalFolder: ../.yarn/berry

npmRegistryServer: "https://registry.npmjs.org"
npmRegistryServer: 'https://registry.npmjs.org'

npmScopes:
atls:
npmRegistryServer: "https://registry.npmjs.org"
npmRegistryServer: 'https://registry.npmjs.org'

pnpEnableEsmLoader: true

Expand Down
95 changes: 44 additions & 51 deletions packages/identity-integration/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,58 +1,51 @@


## 1.0.2 (2025-07-18)


### Bug Fixes


* **identity-integration:** group and patch other types ([69b343a](https://github.com/atls/nextjs/commit/69b343adc203717acff4ac6075480e771186c058))
* locales path ([4b13fa5](https://github.com/atls/nextjs/commit/4b13fa591c20f8e9e3edb9bacda505e55c799487))
* locales path ([19656d2](https://github.com/atls/nextjs/commit/19656d2cd4c84abfe89c45fee7a08ed5421404c4))
* **next-identity-integration:** linter and types ([9c7b573](https://github.com/atls/nextjs/commit/9c7b573d46f859f1f807528cf4ee55390cef29c8))
* node messages ([5281c12](https://github.com/atls/nextjs/commit/5281c12e6c1c6ac7b41e318ba685c7472a802cb7))
* remove reloading after session ([f8988f5](https://github.com/atls/nextjs/commit/f8988f5d76781e089d904d313de7783156848c0a))
* return urls, interfaces, add localized messages ([524f7c4](https://github.com/atls/nextjs/commit/524f7c4ff29ab2742ab992c89f3c93b46cd182f1))
* update yarn, types, linting errors ([fbaff36](https://github.com/atls/nextjs/commit/fbaff3651540f341e4ab516bff031f856cff0fc9))
- **identity-integration:** group and patch other types ([69b343a](https://github.com/atls/nextjs/commit/69b343adc203717acff4ac6075480e771186c058))
- locales path ([4b13fa5](https://github.com/atls/nextjs/commit/4b13fa591c20f8e9e3edb9bacda505e55c799487))
- locales path ([19656d2](https://github.com/atls/nextjs/commit/19656d2cd4c84abfe89c45fee7a08ed5421404c4))
- **next-identity-integration:** linter and types ([9c7b573](https://github.com/atls/nextjs/commit/9c7b573d46f859f1f807528cf4ee55390cef29c8))
- node messages ([5281c12](https://github.com/atls/nextjs/commit/5281c12e6c1c6ac7b41e318ba685c7472a802cb7))
- remove reloading after session ([f8988f5](https://github.com/atls/nextjs/commit/f8988f5d76781e089d904d313de7783156848c0a))
- return urls, interfaces, add localized messages ([524f7c4](https://github.com/atls/nextjs/commit/524f7c4ff29ab2742ab992c89f3c93b46cd182f1))
- update yarn, types, linting errors ([fbaff36](https://github.com/atls/nextjs/commit/fbaff3651540f341e4ab516bff031f856cff0fc9))

### Features


* add email to query params ([6d4f2eb](https://github.com/atls/nextjs/commit/6d4f2eb263f083397f62288cbe259ac0ca60e313))
* add error messages ([4d5b36d](https://github.com/atls/nextjs/commit/4d5b36d9ebb594a604423721bd8e54d6f8ca244e))
* add identity as state, URL for settings and interfaces ([22727c6](https://github.com/atls/nextjs/commit/22727c6a06ee64ba4c524dd40a1f710adb8745d5))
* add kratos admin client ([1fa693e](https://github.com/atls/nextjs/commit/1fa693e7b0e698fb698e8bd0ded09984f9146012))
* add new optional prop shouldRedirect to registration flow ([e4f6d29](https://github.com/atls/nextjs/commit/e4f6d29a59c9485edaca68f403f4912c3495d773))
* add redirect to verification page after successful registration ([cf8ed10](https://github.com/atls/nextjs/commit/cf8ed1060f3375f173edc7b65ddbac6c721ecd35))
* bump yarn, next-identity, typescript, eslint ([7dcfbf0](https://github.com/atls/nextjs/commit/7dcfbf0346fc8773d10ecbe5df79b539bdb2a0da))
* bump yarn, next-identity, typescript, eslint ([d0c58aa](https://github.com/atls/nextjs/commit/d0c58aabf6948f10a4556fd98f4de18bdf979c03))
* bump yarn, ory client, ory integrations, kratos client, nextjs, axios versions ([c5c3cc2](https://github.com/atls/nextjs/commit/c5c3cc2dbe50133a4d7390ebe1bc4e80c34ade21))
* **common:** bump yarn ([#272](https://github.com/atls/nextjs/issues/272)) ([3354983](https://github.com/atls/nextjs/commit/335498396feafb39aa4332d3b272cbdf70b9d246))
* export kratos types ([84cd087](https://github.com/atls/nextjs/commit/84cd08711a2ad1b821061a2985303b12a9bb542b))
* flow nodes filter component ([8ccc6ee](https://github.com/atls/nextjs/commit/8ccc6ee7a9f00f92bc6395277920d8c90e1d18e5))
* flow nodes group, also override node submit ([1601d5f](https://github.com/atls/nextjs/commit/1601d5f9ff3037e54d6d298fceb01506d61e0cf1))
* identity integration submit method ([528a7ac](https://github.com/atls/nextjs/commit/528a7ac349ee410a528ba69c5a9369c940e9a020))
* identity integration values ([4b695e1](https://github.com/atls/nextjs/commit/4b695e1a8b54451ffaee7d932967dc4d981e55a5))
* **identity-integration:** auth, reg submit method ([14f488d](https://github.com/atls/nextjs/commit/14f488df22b139b7a641a4264ffbc9158cc527f3))
* **identity-integration:** bump versions, switch to esm ([e4b343c](https://github.com/atls/nextjs/commit/e4b343c1b4134ed446394db592a70b3a0a0ad5f9))
* **identity-integration:** export page and app router flows ([ec161d8](https://github.com/atls/nextjs/commit/ec161d878df2c7b64176d7e9d043f0343c24e304))
* **identity-integration:** find nodes by id, also add values nodes allowed ([490234b](https://github.com/atls/nextjs/commit/490234ba25226fa1d58d596d01c1f415cb6ba1a8))
* **identity-integration:** upgrade to kratos 0.11.0 ([901227e](https://github.com/atls/nextjs/commit/901227e15df830bd53dcc0900e5ff9878713136a))
* **identity-intergration:** error flow ([4c2ca70](https://github.com/atls/nextjs/commit/4c2ca7096c5babb13300de517d8ed4f396fc4de8))
* init identity integration ([476ef40](https://github.com/atls/nextjs/commit/476ef40b93091fecf6c3624f213067ce5bf058e6))
* logout init, add reload method, add seq redirect and body ovveride ([f96a2b6](https://github.com/atls/nextjs/commit/f96a2b662ef32e438c24b6e4c7cbfced0a862519))
* migrate to app router ([a4abe72](https://github.com/atls/nextjs/commit/a4abe726919f0c423ec9a7432a934ff36e8d73cb))
* move submit method ([a7623c4](https://github.com/atls/nextjs/commit/a7623c4b27c6c150d3b8ccb6c17e1c4e7cc8c28a))
* new global provider for KratosClient ([5aee60f](https://github.com/atls/nextjs/commit/5aee60f0f377f5e03a59e9ddd8c38898cdb02f73))
* new props for KratosClient ([399356d](https://github.com/atls/nextjs/commit/399356d36db9e44899ecb1e10a233e5218493439))
* new readme ([f35feb6](https://github.com/atls/nextjs/commit/f35feb6331948eeb779a010ed996b63cfa6a98fa))
* redirect url for login ([36ff7bb](https://github.com/atls/nextjs/commit/36ff7bb8aa368fd98f00618e3ec3cd40925cfc1f))
* redirect when session is already available, also flows overriding ([53dbabb](https://github.com/atls/nextjs/commit/53dbabb3fc00dc3aa8a0c6522a9112200f0d3a0d))
* refactor redirect flow of settings ([c8d517d](https://github.com/atls/nextjs/commit/c8d517da0e97e9a01b71bcce3cd9cc41814e15fd))
* registration submit ([b31875a](https://github.com/atls/nextjs/commit/b31875af78d82a12723be1badc476bbb9f5c859d))
* registration, verification, recovery, settings flows ([ae26c9c](https://github.com/atls/nextjs/commit/ae26c9cb1eaf9ef80113063f4c1ae62dc3751790))
* update flows to include fallback returnToUrl ([fb15242](https://github.com/atls/nextjs/commit/fb15242420893a4e8bfdb267a903bbf162f8a15f))
* update README.md ([ff42c5e](https://github.com/atls/nextjs/commit/ff42c5e4c54ffed6e4e982f464d88aed050b911d))
* yarn upgrade ([05fecff](https://github.com/atls/nextjs/commit/05fecff87d8d9f28992b701fe006ca24e4fc72be))


- add email to query params ([6d4f2eb](https://github.com/atls/nextjs/commit/6d4f2eb263f083397f62288cbe259ac0ca60e313))
- add error messages ([4d5b36d](https://github.com/atls/nextjs/commit/4d5b36d9ebb594a604423721bd8e54d6f8ca244e))
- add identity as state, URL for settings and interfaces ([22727c6](https://github.com/atls/nextjs/commit/22727c6a06ee64ba4c524dd40a1f710adb8745d5))
- add kratos admin client ([1fa693e](https://github.com/atls/nextjs/commit/1fa693e7b0e698fb698e8bd0ded09984f9146012))
- add new optional prop shouldRedirect to registration flow ([e4f6d29](https://github.com/atls/nextjs/commit/e4f6d29a59c9485edaca68f403f4912c3495d773))
- add redirect to verification page after successful registration ([cf8ed10](https://github.com/atls/nextjs/commit/cf8ed1060f3375f173edc7b65ddbac6c721ecd35))
- bump yarn, next-identity, typescript, eslint ([7dcfbf0](https://github.com/atls/nextjs/commit/7dcfbf0346fc8773d10ecbe5df79b539bdb2a0da))
- bump yarn, next-identity, typescript, eslint ([d0c58aa](https://github.com/atls/nextjs/commit/d0c58aabf6948f10a4556fd98f4de18bdf979c03))
- bump yarn, ory client, ory integrations, kratos client, nextjs, axios versions ([c5c3cc2](https://github.com/atls/nextjs/commit/c5c3cc2dbe50133a4d7390ebe1bc4e80c34ade21))
- **common:** bump yarn ([#272](https://github.com/atls/nextjs/issues/272)) ([3354983](https://github.com/atls/nextjs/commit/335498396feafb39aa4332d3b272cbdf70b9d246))
- export kratos types ([84cd087](https://github.com/atls/nextjs/commit/84cd08711a2ad1b821061a2985303b12a9bb542b))
- flow nodes filter component ([8ccc6ee](https://github.com/atls/nextjs/commit/8ccc6ee7a9f00f92bc6395277920d8c90e1d18e5))
- flow nodes group, also override node submit ([1601d5f](https://github.com/atls/nextjs/commit/1601d5f9ff3037e54d6d298fceb01506d61e0cf1))
- identity integration submit method ([528a7ac](https://github.com/atls/nextjs/commit/528a7ac349ee410a528ba69c5a9369c940e9a020))
- identity integration values ([4b695e1](https://github.com/atls/nextjs/commit/4b695e1a8b54451ffaee7d932967dc4d981e55a5))
- **identity-integration:** auth, reg submit method ([14f488d](https://github.com/atls/nextjs/commit/14f488df22b139b7a641a4264ffbc9158cc527f3))
- **identity-integration:** bump versions, switch to esm ([e4b343c](https://github.com/atls/nextjs/commit/e4b343c1b4134ed446394db592a70b3a0a0ad5f9))
- **identity-integration:** export page and app router flows ([ec161d8](https://github.com/atls/nextjs/commit/ec161d878df2c7b64176d7e9d043f0343c24e304))
- **identity-integration:** find nodes by id, also add values nodes allowed ([490234b](https://github.com/atls/nextjs/commit/490234ba25226fa1d58d596d01c1f415cb6ba1a8))
- **identity-integration:** upgrade to kratos 0.11.0 ([901227e](https://github.com/atls/nextjs/commit/901227e15df830bd53dcc0900e5ff9878713136a))
- **identity-intergration:** error flow ([4c2ca70](https://github.com/atls/nextjs/commit/4c2ca7096c5babb13300de517d8ed4f396fc4de8))
- init identity integration ([476ef40](https://github.com/atls/nextjs/commit/476ef40b93091fecf6c3624f213067ce5bf058e6))
- logout init, add reload method, add seq redirect and body ovveride ([f96a2b6](https://github.com/atls/nextjs/commit/f96a2b662ef32e438c24b6e4c7cbfced0a862519))
- migrate to app router ([a4abe72](https://github.com/atls/nextjs/commit/a4abe726919f0c423ec9a7432a934ff36e8d73cb))
- move submit method ([a7623c4](https://github.com/atls/nextjs/commit/a7623c4b27c6c150d3b8ccb6c17e1c4e7cc8c28a))
- new global provider for KratosClient ([5aee60f](https://github.com/atls/nextjs/commit/5aee60f0f377f5e03a59e9ddd8c38898cdb02f73))
- new props for KratosClient ([399356d](https://github.com/atls/nextjs/commit/399356d36db9e44899ecb1e10a233e5218493439))
- new readme ([f35feb6](https://github.com/atls/nextjs/commit/f35feb6331948eeb779a010ed996b63cfa6a98fa))
- redirect url for login ([36ff7bb](https://github.com/atls/nextjs/commit/36ff7bb8aa368fd98f00618e3ec3cd40925cfc1f))
- redirect when session is already available, also flows overriding ([53dbabb](https://github.com/atls/nextjs/commit/53dbabb3fc00dc3aa8a0c6522a9112200f0d3a0d))
- refactor redirect flow of settings ([c8d517d](https://github.com/atls/nextjs/commit/c8d517da0e97e9a01b71bcce3cd9cc41814e15fd))
- registration submit ([b31875a](https://github.com/atls/nextjs/commit/b31875af78d82a12723be1badc476bbb9f5c859d))
- registration, verification, recovery, settings flows ([ae26c9c](https://github.com/atls/nextjs/commit/ae26c9cb1eaf9ef80113063f4c1ae62dc3751790))
- update flows to include fallback returnToUrl ([fb15242](https://github.com/atls/nextjs/commit/fb15242420893a4e8bfdb267a903bbf162f8a15f))
- update README.md ([ff42c5e](https://github.com/atls/nextjs/commit/ff42c5e4c54ffed6e4e982f464d88aed050b911d))
- yarn upgrade ([05fecff](https://github.com/atls/nextjs/commit/05fecff87d8d9f28992b701fe006ca24e4fc72be))
12 changes: 6 additions & 6 deletions packages/identity-integration/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@
"tldjs": "2.3.2"
},
"devDependencies": {
"@types/react": "19.1.8",
"@types/react-dom": "19.1.6",
"@types/react": "19.2.7",
"@types/react-dom": "19.2.3",
"@types/tldjs": "2.3.4",
"axios": "1.10.0",
"next": "15.3.5",
"react": "19.1.0",
"react-dom": "19.1.0"
"next": "16.0.1",
"react": "19.2.0",
"react-dom": "19.2.0"
},
"peerDependencies": {
"next": "^15.3.0",
"next": "^15.3.0 || ^16.0.0",
"react": "^19.1.0"
},
"publishConfig": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ export interface ErrorErrorProps {
export const ErrorFlow: FC<PropsWithChildren<ErrorErrorProps>> = ({ children, returnToUrl }) => {
const [error, setError] = useState<FlowError>()
const [loading, setLoading] = useState<boolean>(true)
const { get } = useSearchParams()
const searchParams = useSearchParams()
const { push } = useRouter()

const { kratosClient } = useKratosClient()

const id = get('id')
const id = searchParams.get('id')

useEffect(() => {
if (error) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export const LoginFlow: FC<PropsWithChildren<LoginFlowProps>> = ({
const [loading, setLoading] = useState<boolean>(true)
const values = useMemo(() => new ValuesStore(), [])
const router = useRouter()
const { get } = useSearchParams()
const searchParams = useSearchParams()
const { kratosClient, returnToSettingsUrl } = useKratosClient()

const returnTo = get('return_to')
const flowId = get('flow')
const refresh = get('refresh')
const aal = get('aal')
const returnTo = searchParams.get('return_to')
const flowId = searchParams.get('flow')
const refresh = searchParams.get('refresh')
const aal = searchParams.get('aal')

useEffect(() => {
if (flow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ export const LogoutFlow: FC<PropsWithChildren<LogoutFlowProps>> = ({ children, r
const [logoutToken, setLogoutToken] = useState<string>('')
const router = useRouter()
const { kratosClient } = useKratosClient()
const { get } = useSearchParams()
const searchParams = useSearchParams()

const returnTo = get('return_to')
const returnTo = searchParams.get('return_to')

useEffect(() => {
kratosClient
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,13 @@ export const RecoveryFlow: FC<PropsWithChildren<RecoveryFlowProps>> = ({
const [loading, setLoading] = useState<boolean>(true)
const values = useMemo(() => new ValuesStore(), [])
const router = useRouter()
const { get } = useSearchParams()
const searchParams = useSearchParams()
const { kratosClient, returnToSettingsUrl } = useKratosClient()

const returnTo = get('return_to')
const flowId = get('flow')
const refresh = get('refresh')
const aal = get('aal')
const returnTo = searchParams.get('return_to')
const flowId = searchParams.get('flow')
const refresh = searchParams.get('refresh')
const aal = searchParams.get('aal')

useEffect(() => {
if (flow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface RegistrationFlowProps {
onError?: (error: { id: string }) => void
returnToUrl?: string
shouldRedirect?: boolean
passEmail: boolean
passEmail?: boolean
}

type ContinueWith = KratosContinueWith & {
Expand All @@ -51,13 +51,13 @@ export const RegistrationFlow: FC<PropsWithChildren<RegistrationFlowProps>> = ({
const [loading, setLoading] = useState<boolean>(true)
const values = useMemo(() => new ValuesStore(), [])
const router = useRouter()
const { get } = useSearchParams()
const searchParams = useSearchParams()
const { kratosClient, returnToSettingsUrl } = useKratosClient()

const returnTo = get('return_to')
const flowId = get('flow')
const refresh = get('refresh')
const aal = get('aal')
const returnTo = searchParams.get('return_to')
const flowId = searchParams.get('flow')
const refresh = searchParams.get('refresh')
const aal = searchParams.get('aal')

useEffect(() => {
if (flow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ export const SettingsFlow: FC<PropsWithChildren<SettingsFlowProps>> = ({
const values = useMemo(() => new ValuesStore(), [])
const router = useRouter()
const { kratosClient, returnToSettingsUrl } = useKratosClient()
const { get } = useSearchParams()
const searchParams = useSearchParams()

const returnTo = get('return_to')
const flowId = get('flow')
const refresh = get('refresh')
const aal = get('aal')
const returnTo = searchParams.get('return_to')
const flowId = searchParams.get('flow')
const refresh = searchParams.get('refresh')
const aal = searchParams.get('aal')

useEffect(() => {
if (flow) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ export const VerificationFlow: FC<PropsWithChildren<VerificationFlowProps>> = ({
const values = useMemo(() => new ValuesStore(), [])
const router = useRouter()
const { kratosClient } = useKratosClient()
const { get } = useSearchParams()
const searchParams = useSearchParams()

const returnTo = get('return_to')
const flowId = get('flow')
const refresh = get('refresh')
const aal = get('aal')
const returnTo = searchParams.get('return_to')
const flowId = searchParams.get('flow')
const refresh = searchParams.get('refresh')
const aal = searchParams.get('aal')

useEffect(() => {
if (flow) {
Expand Down
Loading
Loading