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

Authentication with Authjs or other libraries #496

Open
hiddengearz opened this issue Mar 1, 2024 · 7 comments
Open

Authentication with Authjs or other libraries #496

hiddengearz opened this issue Mar 1, 2024 · 7 comments
Labels
need-opinion We need ideas from community

Comments

@hiddengearz
Copy link

Hello,

I've spent all week trying to get authjs to work with this adapter and I'm at the point where I believe there is simply something incompatible between the two and I have no idea what it is. I have it working locally but I get errors I can't figure out when deployed to AWS.

Over the weekend I plan to test the template project to make sure it has nothing to do with my project but i was curious if anyone has used authjs or any other sort of stateless authentication with this adapter?

@jill64 jill64 added the need-opinion We need ideas from community label Mar 1, 2024
@hiddengearz
Copy link
Author

hiddengearz commented Mar 2, 2024

Tried the adapter with sveltekit-auth-example and had the same issue, works fine locally.

@mblinusreimertz
Copy link

mblinusreimertz commented Mar 14, 2024

Hooks.server.ts is not included in any of the diagrams. Not sure if it's supported? Since Authjs uses it to intercept each request I'm guessing it would have to be it's own lambda which it might not be when using this adapter.

@hiddengearz
Copy link
Author

Yes it does use hooks.server.ts.

Which diagram are you referring to? This one?

@mblinusreimertz
Copy link

Ok, cool. Yep that one, have you gotten it to work? :)

@mblinusreimertz
Copy link

I just set it up and it works fine for me. Could it be something with your Authjs set up?

@hiddengearz
Copy link
Author

I never got it working with a lambda, I did get it working with AWS ECS.

Did you use the cognito provider?

@mblinusreimertz
Copy link

I used the credentials provder but I'm gonna try out Cognito within a couple of weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need-opinion We need ideas from community
Projects
None yet
Development

No branches or pull requests

3 participants