-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
[✨]Could add an example of Auth.js that uses username+password? #5452
Comments
I would like to work on this |
Thanks @VarPDev |
@VarPDev That's great! Could use jwt instead of session? |
@zwl1619 I saw there is a property you can change inside serverAuth$ named "session" Example
|
@VarPDev Thanks! Could you please use jwt in the username+ password example? Session has already been used in the github auth example, showing different ways is always better. |
Auth.js says jwt is the default choice. Auth.js libraries can create sessions using JSON Web Tokens (JWT). This is the default session strategy for Auth.js libraries. Need to figure out if it is overridden by qwik or remains default jwt as in auth.js. |
I don't have clue for that. if JWT is the default option, go for it. |
I did a PR to update the documentation. file: plugin@auth.ts
file: sign.ts
|
Thanks very much! |
@zwl1619 did you try it? |
@gioboa Not yet! I'll try it later. |
Could add an example of Auth.js that uses username+password?
Seems many people have trouble with it.
There is an example that uses GitHub auth in the docs here: https://qwik.builder.io/docs/integrations/authjs/
But it's different from username+password.
The text was updated successfully, but these errors were encountered: