Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(qwik-auth): lock down @auth/core version #5790

Merged
merged 4 commits into from
Jan 28, 2024
Merged

Conversation

balazsorban44
Copy link
Contributor

@balazsorban44 balazsorban44 commented Jan 27, 2024

Overview

Auth.js author here!

First off, thank you to the Builder.io team for taking interest in maintaining an integration with Auth.js! We are currently working on writing up the base guidelines for third-party integrations, and fully respect if you want to keep maintaining your own package instead of coming over to @auth/qwik (happy to collaborate!). I'll remember to send over the guidelines once we have them!

What is it?

  • Feature / enhancement
  • Bug
  • Docs / tests / types / typos

Fixes #5783 (likely others too?)

Description

To avoid issues like #5783, in this PR I suggest making @auth/core a dependency of qwik-auth and lock it down to a version you are committed to maintain. Changes land in @auth/core that can still be breaking without any warnings, as it's still distributed as experimental. (Although it's getting more and more stable, announcement 🔜™️)

#5783 was a consequence of this PR nextauthjs/next-auth#9686, which was landed in 0.22.0, so I propose locking down on 0.21.0 for now. Feel free to adjust, if you think you are behind more than this.

Sidenote. This is not included in the PR, but another neat thing we decided to do is sync our providers into @auth/lib/providers/*, so user's won't need to install @auth/core at all! Check out this script and tweak it if interested! https://github.com/nextauthjs/next-auth/blob/main/packages/utils/scripts/providers.js.

Then, your user would use @builder.io/qwik-auth/providers/github for example.

This would likely give a better DX for your users. 😉

Feel free to reach out for further discussions!

Checklist:

  • My code follows the developer guidelines of this project
  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation
  • Added new tests to cover the fix / functionality

Copy link

netlify bot commented Jan 27, 2024

👷 Deploy request for qwik-insights pending review.

Visit the deploys page to approve it

Name Link
🔨 Latest commit 5fa6788

@balazsorban44 balazsorban44 changed the title fix: lock down @auth/core fix(qwik-auth): lock down @auth/core Jan 27, 2024
@balazsorban44 balazsorban44 changed the title fix(qwik-auth): lock down @auth/core fix(qwik-auth): lock down @auth/core version Jan 27, 2024
Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice @balazsorban44 Thanks for you help

Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@balazsorban44 Can you check the failing tests pls?

Copy link
Member

@gioboa gioboa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

@gioboa gioboa merged commit 7b59c56 into QwikDev:main Jan 28, 2024
22 checks passed
kodiakhq bot pushed a commit to ascorbic/unpic-img that referenced this pull request Jan 30, 2024
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [@builder.io/qwik](https://qwik.builder.io/) ([source](https://togithub.com/BuilderIO/qwik/tree/HEAD/packages/qwik)) | [`1.3.2` -> `1.4.3`](https://renovatebot.com/diffs/npm/@builder.io%2fqwik/1.3.2/1.4.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@builder.io%2fqwik/1.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@builder.io%2fqwik/1.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@builder.io%2fqwik/1.3.2/1.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@builder.io%2fqwik/1.3.2/1.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>BuilderIO/qwik (@&#8203;builder.io/qwik)</summary>

### [`v1.4.3`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.4.3)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.4.2...v1.4.3)

#### What's Changed

-   chore(vite): downgrade vite version by [@&#8203;balaji-sivasakthi](https://togithub.com/balaji-sivasakthi) in [QwikDev/qwik#5785
-   fix(starter): adjust padding for 768px devices by [@&#8203;balaji-sivasakthi](https://togithub.com/balaji-sivasakthi) in [QwikDev/qwik#5787
-   chore: lint++ by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5788
-   fix(qwik-city): fix import ./[@&#8203;qwik-city](https://togithub.com/qwik-city) files in prod by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5791
-   fix(qwik-auth): lock down `@auth/core` version by [@&#8203;balazsorban44](https://togithub.com/balazsorban44) in [QwikDev/qwik#5790
-   chore(docs): align indentation by [@&#8203;greatgraphicdesign](https://togithub.com/greatgraphicdesign) in [QwikDev/qwik#5792
-   chore(docs): Update to latest builder.io/sdk-qwik by [@&#8203;STRd6](https://togithub.com/STRd6) in [QwikDev/qwik#5794
-   docs: Redirect all requests from builder.io to the qwik.dev domain. by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5796
-   feat(QwikCityMockProvider): add optional goto prop by [@&#8203;alexismch](https://togithub.com/alexismch) in [QwikDev/qwik#5779
-   chore(starters): update 🐼 PandaCSS integration starter dev dependency by [@&#8203;mrhoodz](https://togithub.com/mrhoodz) in [QwikDev/qwik#5797
-   feat(qwik): configure sourcemap in optimizer by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5799
-   chore: 1.4.3 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5800

#### New Contributors

-   [@&#8203;balaji-sivasakthi](https://togithub.com/balaji-sivasakthi) made their first contribution in [QwikDev/qwik#5785
-   [@&#8203;balazsorban44](https://togithub.com/balazsorban44) made their first contribution in [QwikDev/qwik#5790
-   [@&#8203;greatgraphicdesign](https://togithub.com/greatgraphicdesign) made their first contribution in [QwikDev/qwik#5792
-   [@&#8203;alexismch](https://togithub.com/alexismch) made their first contribution in [QwikDev/qwik#5779

**Full Changelog**: QwikDev/qwik@v1.4.2...v1.4.3

### [`v1.4.2`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.4.2)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.4.1...v1.4.2)

##### What's Changed

-   fix(docs): Sandbox playground iframe by [@&#8203;STRd6](https://togithub.com/STRd6) in [QwikDev/qwik#5768
-   docs(astro): update integration doc by [@&#8203;thejackshelton](https://togithub.com/thejackshelton) in [QwikDev/qwik#5771
-   docs: add note about Astro integrations order importance by [@&#8203;Seanmclem](https://togithub.com/Seanmclem) in [QwikDev/qwik#5776
-   feat(dev): preload modules for / so dev starts faster by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5775
-   fix: SW cache race condition by [@&#8203;thejackshelton](https://togithub.com/thejackshelton) in [QwikDev/qwik#5780
-   chore: 1.4.2 by [@&#8203;thejackshelton](https://togithub.com/thejackshelton) in [QwikDev/qwik#5781

##### New Contributors

-   [@&#8203;Seanmclem](https://togithub.com/Seanmclem) made their first contribution in [QwikDev/qwik#5776

**Full Changelog**: QwikDev/qwik@v1.4.1...v1.4.2

### [`v1.4.1`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.4.1)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.4.0...v1.4.1)

##### Overview

-   Try harder to prevent dirty tasks on SSR
-   AWS middleware in `qwik-city`
-   File filter option to make Qwik work better with Astro
-   `qwik-auth` can now handle multiple cookies
-   Node adapters in `qwik-city` now read .env files
-   Bugfixes in various service workers, starter CSS build, etc
-   Dependency updates

Thanks to all contributors!

##### Commits

-   chore(starters): update 🐼 PandaCSS integration dev dependency  by [@&#8203;mrhoodz](https://togithub.com/mrhoodz) in [QwikDev/qwik#5739
-   docs: add Valibot website to showcases by [@&#8203;fabian-hiller](https://togithub.com/fabian-hiller) in [QwikDev/qwik#5740
-   fix: multiple cookies in qwik-auth by [@&#8203;ksjogo](https://togithub.com/ksjogo) in [QwikDev/qwik#5602
-   feat(qwik-city): AWS adapter middleware by [@&#8203;leifermendez](https://togithub.com/leifermendez) in [QwikDev/qwik#5732
-   docs: fix code highlight by downgrading rehype-pretty-code by [@&#8203;Balastrong](https://togithub.com/Balastrong) in [QwikDev/qwik#5742
-   feat(starters): add dotenv in node adapters by [@&#8203;hassanzohdy](https://togithub.com/hassanzohdy) in [QwikDev/qwik#5749
-   fix(docs): Validate origin on postmessage by [@&#8203;STRd6](https://togithub.com/STRd6) in [QwikDev/qwik#5751
-   feat(vite): new file filter option by [@&#8203;thejackshelton](https://togithub.com/thejackshelton) in [QwikDev/qwik#5752
-   fix(ssr): dirty tasks by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5741
-   fix(qwik): ensure that SW cache is properly opened by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5748
-   fix: insights error handling and qwik-city json imports by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5754
-   fix(prefetch-sw): await cache opening by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5759
-   chore: updates by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5760
-   fix(sw-prefetch): prevent uninitialized cache use by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5761
-   fix(sw-prefetch): cache handling by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5764
-   fix: duplicated css code in global.css in starter template by [@&#8203;linkfang](https://togithub.com/linkfang) in [QwikDev/qwik#5763
-   feat(repl): use bundled qwik and prettier versions by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5755
-   fix(sw-prefetch): clone on reuse by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5765
-   chore: 1.4.1 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5766

##### New Contributors

-   [@&#8203;STRd6](https://togithub.com/STRd6) made their first contribution in [QwikDev/qwik#5751

**Full Changelog**: QwikDev/qwik@v1.4.0...v1.4.1

### [`v1.4.0`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.4.0)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.3.5...v1.4.0)

##### What's Changed

-   Types have changed a bit, now JSX components output `JSXOutput` instead of `JSXNode`, which captures the existing possibility to return strings, booleans, arrays etc.
-   The Link component now automatically prefetches the JS needed
-   When SPA routing fails, it will now use MPA routing as a fallback
-   Various bugfixes

##### PRs merged

-   docs(showcase): add Blueagle's Profolio & Blog by [@&#8203;blueagler](https://togithub.com/blueagler) in [QwikDev/qwik#5695
-   docs(showcase): update metrics by [@&#8203;gioboa](https://togithub.com/gioboa) in [QwikDev/qwik#5707
-   fix(types): untyped components, test more edge cases by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5713
-   docs(showcase): add Zhou's portfolio by [@&#8203;linkfang](https://togithub.com/linkfang) in [QwikDev/qwik#5710
-   chore: upgrades by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5705
-   fix(qwik): register new index.d.ts package file by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5715
-   docs: move props example after local state and useStore explanation by [@&#8203;Balastrong](https://togithub.com/Balastrong) in [QwikDev/qwik#5718
-   docs: emphasize on useStore and onInput$ by [@&#8203;Balastrong](https://togithub.com/Balastrong) in [QwikDev/qwik#5719
-   docs: add Storybook Examples by [@&#8203;thenhawke](https://togithub.com/thenhawke) in [QwikDev/qwik#5720
-   fix(jsx-qwik-attributes): fix ts error TS4023 by [@&#8203;maiieul](https://togithub.com/maiieul) in [QwikDev/qwik#5722
-   fix(types): JSX.Element is JSXOutput by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5723
-   fix: prevent race condition by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5711
-   fix: build from scratch + insights by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5724
-   docs: Good first issue link doesn't lead you to properly label "COMMUNITY:  good first issue" by [@&#8203;aendel](https://togithub.com/aendel) in [QwikDev/qwik#5726
-   docs: fixed CodeSandbox/CodeFile src paths to match github files by [@&#8203;aendel](https://togithub.com/aendel) in [QwikDev/qwik#5725
-   fix: Uppercase handling for SameSite cookie values by [@&#8203;ksjogo](https://togithub.com/ksjogo) in [QwikDev/qwik#5603
-   feat(link): prefetch symbols by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5480
-   docs: Fixed various typos (or misspelled words) in documentation files by [@&#8203;aendel](https://togithub.com/aendel) in [QwikDev/qwik#5728
-   chore: extra type tests by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5580
-   fix(build): qwik binary path in package.json by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5729
-   fix(routing): fallback to hard navigation when soft navigation fails. by [@&#8203;iamriajul](https://togithub.com/iamriajul) in [QwikDev/qwik#5521
-   fix(JSX): remove Promise from FC by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5730
-   fix(core): serialize the 'key' attribute of JSX nodes by [@&#8203;yanivhamo](https://togithub.com/yanivhamo) in [QwikDev/qwik#5501
-   fix(repl): give monaco the names of the imports by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5734
-   docs(cookbook): add Combine Request Handlers example by [@&#8203;gioboa](https://togithub.com/gioboa) and [@&#8203;erikras](https://togithub.com/erikras) in [QwikDev/qwik#5733
-   fix(docs): grammar in "Project Structure" page by [@&#8203;ChallengeHandler](https://togithub.com/ChallengeHandler) in [QwikDev/qwik#5735
-   chore: 1.4.0 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5736

##### New Contributors

-   [@&#8203;blueagler](https://togithub.com/blueagler) made their first contribution in [QwikDev/qwik#5695
-   [@&#8203;linkfang](https://togithub.com/linkfang) made their first contribution in [QwikDev/qwik#5710
-   [@&#8203;Balastrong](https://togithub.com/Balastrong) made their first contribution in [QwikDev/qwik#5718
-   [@&#8203;thenhawke](https://togithub.com/thenhawke) made their first contribution in [QwikDev/qwik#5720
-   [@&#8203;aendel](https://togithub.com/aendel) made their first contribution in [QwikDev/qwik#5726
-   [@&#8203;ksjogo](https://togithub.com/ksjogo) made their first contribution in [QwikDev/qwik#5603
-   [@&#8203;yanivhamo](https://togithub.com/yanivhamo) made their first contribution in [QwikDev/qwik#5501
-   [@&#8203;ChallengeHandler](https://togithub.com/ChallengeHandler) made their first contribution in [QwikDev/qwik#5735

**Full Changelog**: QwikDev/qwik@v1.3.5...v1.4.0

### [`v1.3.5`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.3.5)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.3.4...v1.3.5)

#### What's Changed

-   docs: fix typos for theme management cookbook by [@&#8203;harshmangalam](https://togithub.com/harshmangalam) in [QwikDev/qwik#5698
-   fix(labs): double slash when used with BASE_URL by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5700
-   fix: improve escapeText and unescapeText replace to prevent XSS by [@&#8203;ignatvilesov](https://togithub.com/ignatvilesov) in [QwikDev/qwik#5701
-   chore: allow any undici version by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5703
-   docs(propfunctionprops): mark propfunctionprops as deprecated by [@&#8203;maiieul](https://togithub.com/maiieul) in [QwikDev/qwik#5680
-   chore: 1.3.5 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5704

**Full Changelog**: QwikDev/qwik@v1.3.4...v1.3.5

### [`v1.3.4`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.3.4)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.3.3...v1.3.4)

##### What's Changed

-   chore: update deps + monaco by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5685
-   chore: Remove duplicated dist directory from .prettierignore by [@&#8203;nelsonprsousa](https://togithub.com/nelsonprsousa) in [QwikDev/qwik#5687
-   docs: add og-img integration guide by [@&#8203;fabian-hiller](https://togithub.com/fabian-hiller) in [QwikDev/qwik#5686
-   chore: improve FunctionComponent by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5688
-   fix: improve escapeText replace by [@&#8203;ignatvilesov](https://togithub.com/ignatvilesov) in [QwikDev/qwik#5689
-   fix(optimizer): use correct prop in omit by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5690
-   chore: 1.3.4 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5691
-   docs: fix typos for nav link cookbook  by [@&#8203;harshmangalam](https://togithub.com/harshmangalam) in [QwikDev/qwik#5694

##### New Contributors

-   [@&#8203;ignatvilesov](https://togithub.com/ignatvilesov) made their first contribution in [QwikDev/qwik#5689

**Full Changelog**: QwikDev/qwik@v1.3.3...v1.3.4

### [`v1.3.3`](https://togithub.com/BuilderIO/qwik/releases/tag/v1.3.3)

[Compare Source](https://togithub.com/BuilderIO/qwik/compare/v1.3.2...v1.3.3)

##### What's Changed

-   fix(cli): Update jokes.json by [@&#8203;mayank99](https://togithub.com/mayank99) in [QwikDev/qwik#5657
-   docs: for accessing the .env variables in serverfull architechture example in express by [@&#8203;sreeisalso](https://togithub.com/sreeisalso) in [QwikDev/qwik#5619
-   docs: change placement of {...props}  and add section by [@&#8203;Adbib](https://togithub.com/Adbib) in [QwikDev/qwik#5664
-   docs: Update build command in Static Site Generation (SSG) Overview docs by [@&#8203;lelouchB](https://togithub.com/lelouchB) in [QwikDev/qwik#5668
-   fix(starter): rename tailwind postcss.config file by [@&#8203;iamriajul](https://togithub.com/iamriajul) in [QwikDev/qwik#5669
-   fix: fixing running qwik-development-server on windows machine by [@&#8203;hassanzohdy](https://togithub.com/hassanzohdy) in [QwikDev/qwik#5593
-   fix(starter): add vite plugin type by [@&#8203;iamriajul](https://togithub.com/iamriajul) in [QwikDev/qwik#5670
-   feat(qwik-react): directive aliases for Astro and other package conflicts by [@&#8203;thejackshelton](https://togithub.com/thejackshelton) in [QwikDev/qwik#5651
-   feat: qwik-prefetch-worker by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5618
-   refactor: Clarify var naming qwikloader.ts by [@&#8203;gabrielgrant](https://togithub.com/gabrielgrant) in [QwikDev/qwik#5546
-   docs: fix entry file name by [@&#8203;AustinGil](https://togithub.com/AustinGil) in [QwikDev/qwik#5646
-   feat(labs): Support base prefix in untypedAppUrl by [@&#8203;tera-ny](https://togithub.com/tera-ny) in [QwikDev/qwik#5615
-   style(starter templates): updates to starter templates names by [@&#8203;abstractalgo](https://togithub.com/abstractalgo) in [QwikDev/qwik#5479
-   fix: Clearer error message for `resolveValue` for `head` function by [@&#8203;colelawrence](https://togithub.com/colelawrence) in [QwikDev/qwik#5624
-   refactor(starter): add alt attribute in order to improve accessibility by [@&#8203;tidiview](https://togithub.com/tidiview) in [QwikDev/qwik#5674
-   refactor(insights): remove netlify.toml causing confusion by [@&#8203;mhevery](https://togithub.com/mhevery) in [QwikDev/qwik#5676
-   feat(cookbook): add Algolia search by [@&#8203;gioboa](https://togithub.com/gioboa) in [QwikDev/qwik#5675
-   fix(cookbook): change Algolia example by [@&#8203;gioboa](https://togithub.com/gioboa) in [QwikDev/qwik#5677
-   fix: polymorphic component types by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5672
-   chore: add Nix build flake environment by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5594
-   fix(nix): missing .envrc by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5678
-   fix(nix): make rust and wasm builds work by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5679
-   fix: dynamic refs by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5681
-   fix(core): Make polymorphic components easy by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5682
-   chore: 1.3.3 by [@&#8203;wmertens](https://togithub.com/wmertens) in [QwikDev/qwik#5683

##### New Contributors

-   [@&#8203;mayank99](https://togithub.com/mayank99) made their first contribution in [QwikDev/qwik#5657
-   [@&#8203;lelouchB](https://togithub.com/lelouchB) made their first contribution in [QwikDev/qwik#5668
-   [@&#8203;hassanzohdy](https://togithub.com/hassanzohdy) made their first contribution in [QwikDev/qwik#5593
-   [@&#8203;AustinGil](https://togithub.com/AustinGil) made their first contribution in [QwikDev/qwik#5646
-   [@&#8203;tera-ny](https://togithub.com/tera-ny) made their first contribution in [QwikDev/qwik#5615

**Full Changelog**: QwikDev/qwik@v1.3.2...v1.3.3

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9pm on sunday" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/ascorbic/unpic-img).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4xMjcuMCIsInVwZGF0ZWRJblZlciI6IjM3LjE1My4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
@hosseinitabar
Copy link

This is not solved yet.

With these latest updated:

    "devDependencies": {
        "@auth/core": "^0.25.0",
        "@builder.io/partytown": "^0.9.1",
        "@builder.io/qwik": "^1.4.3",
        "@builder.io/qwik-auth": "~0.1.3",
        "@builder.io/qwik-city": "^1.4.3",
        "@tailwindcss/typography": "^0.5.10",
        "@types/compression": "^1.7.5",
        "@types/cors": "^2.8.16",
        "@types/eslint": "^8.56.2",
        "@types/express": "^4.17.21",
        "@types/node": "^20.11.14",

We still get this error:

DockerContainer | [auth][error] UnknownAction: Cannot parse action at /api/auth/session .Read more at https://errors.authjs.dev#unknownaction
DockerContainer |     at parseActionAndProviderId (file:///Project/Infra/node_modules/@auth/core/lib/utils/web.js:102:15)
DockerContainer |     at toInternalRequest (file:///Project/Infra/node_modules/@auth/core/lib/utils/web.js:32:40)
DockerContainer |     at Module.Auth (file:///Project/Infra/node_modules/@auth/core/index.js:66:35)
DockerContainer |     at getSessionData (/Project/Infra/node_modules/@builder.io/qwik-auth/lib/index.qwik.mjs:305:50)
DockerContainer |     at onRequest (/Project/Infra/node_modules/@builder.io/qwik-auth/lib/index.qwik.mjs:244:50)
DockerContainer |     at async Object.next (file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:24840:9)
DockerContainer |     at async runNext (file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:25085:5)
DockerContainer |     at async file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:25653:26
DockerContainer | 7:45:13 AM [vite] Internal server error: 
DockerContainer |       at getSessionData (/Project/Infra/node_modules/@builder.io/qwik-auth/lib/index.qwik.mjs:320:9)
DockerContainer |       at async onRequest (/Project/Infra/node_modules/@builder.io/qwik-auth/lib/index.qwik.mjs:241:34)
DockerContainer |       at async Object.next (file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:24840:9)
DockerContainer |       at async runNext (file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:25085:5)
DockerContainer |       at async file:///Project/Infra/node_modules/@builder.io/qwik-city/vite/index.mjs:25653:26

For this Plugin.ts file:

// @ts-nocheck

import { serverAuth$ } from '@builder.io/qwik-auth'
import type { Provider } from '@auth/core/providers'
import Keycloak from '@auth/core/providers/keycloak'

export const { onRequest, useAuthSession, useAuthSignin, useAuthSignout } = serverAuth$(
    ({ env }) => ({
        secret: env.get("AUTH_SECRET"),
        trustHost: true,
        callbacks: {
            async session({
                session,
                token,
            }) {
                session.user.guid = token.sub
                return session
            }
        },
        providers: [
            Keycloak({
                clientId: 'Site',
                clientSecret: env.get('KEYCLOAK_CLIENT_SECRET') as string,
                issuer: env.get('KEYCLOAK_ISSUER') as string
            }),
        ] as Provider[],
    })
);

@maiieul
Copy link
Collaborator

maiieul commented Feb 3, 2024

Hey @balazsorban44 👋

Just to let you know that we all agreed (@mhevery included) on Discord that it would be great to bring qwik-auth over to @auth/qwik. I'm full-time on open-source at the moment, building https://qwikui.com/ and more importantly https://github.com/x-ploration-of-mars/x-stack where Auth.js will be the recommended default. So you can count on me to try my best to help you for the migration. I might be lacking some understanding of the Qwik code or the Auth.js code, but I've dived quite a few times into the Qwik and Auth.js codebase in the past, so I hopefully should be able to make myself useful 👀

Feel free to come by on the builder discord when you think auth.js is ready and we can work on that together. The others will probably be able to help me if we ever get stuck ^^.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[🐞] [auth][error] UnknownAction: Cannot parse action at /api/auth/session
5 participants