lucia-auth / examples

A collection of example projects built with Lucia
MIT License
226 stars 52 forks source link

Update astro examples to Astro 4 and astrojs/node 8 #19

Closed alfdocimo closed 8 months ago

alfdocimo commented 8 months ago

Hi! 👋

Following up #20, this PR updates the Astro examples to v4 and astrojs/node v8

I believe the only change that needs to be made was renaming the HTTP method names to uppercase, as Astro v4.0 removes support for lowercase names: 👉 https://docs.astro.build/en/guides/upgrade-to/v4/#removed-lowercase-http-method-names

All the examples are working as expected:

Github OAuth

https://github.com/lucia-auth/examples/assets/22222078/6c8d281d-74f1-4c2c-a389-bb6ff825d27c

Email and password

https://github.com/lucia-auth/examples/assets/22222078/59744eaf-e008-49a5-9438-17a99c831f31

Username and password

https://github.com/lucia-auth/examples/assets/22222078/b5aa672d-4bbf-43b8-881d-2bcd0b1b8be2

pilcrowOnPaper commented 8 months ago

Thanks!