Comments (7)
I found out what the problem is
I actually used pnpm instead of npm
and npm works
from auth-astro.
I found out what the problem is I actually used pnpm instead of npm and npm works
I solved this by pnpm add cookie
,
Because of import cookie without installing deps:
Line 29 in 8191f11
from auth-astro.
Thank you all for the help. The new version 1.0.6
was just published. It adds cookie as a dependency which should fix this issue.
from auth-astro.
Adding this to your astro.config.mjs
should fix this. I'll look for a better solution, but if I can't find one, I'll add this to the docs.
vite: {
ssr: {
noExternal: ['auth-astro']
},
}
from auth-astro.
Also the above solution doesnt fix the issue on pnpm
from auth-astro.
ooh ok, thanks. I'll try to replicate this and see if we can fix whatever pnpm is doing
from auth-astro.
OH
We only have the types for cookie
we don't have it as a dependency. I guess we never ran into this before, because @auth/core
has it as a dependency.
Thanks so much for looking into this, I've been pretty busy recently, but I'm also in the process of prepping v2 for launch. I'll try to get this added as a dependency ASAP.
from auth-astro.
Related Issues (20)
- Endpoints that should set multiple cookies only set one, causing e.g. callbackUrl to be dropped HOT 1
- Auth configuration filename hidden in README
- AstroAuth (Receiving Undefined Options) HOT 4
- Auth verification error not handled as expected HOT 3
- Make server origin configurable
- Initialize auth config lazily HOT 1
- Session cookies not changing when session is updated HOT 4
- Discord provider is missing user.id in the session object HOT 18
- Outdated @auth/core version HOT 1
- restrict users HOT 1
- AstroAuthHandler attempts to modify immutable headers HOT 4
- Sign In with Credentials Provider always return OK HOT 3
- Can't use getSession inside Vercel edge middleware
- Should support `output=hybrid` + `prerender=false`? HOT 2
- get provider source with getSession HOT 1
- Errors trying to use Keycloak as OIDC provider HOT 3
- Error on cancel login HOT 1
- I connect it with keycloak, how can I obtain the token, to consult an api if it is authenticated HOT 1
- Question: Svelte support?
- Module augmentation
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auth-astro.