-
Notifications
You must be signed in to change notification settings - Fork 101
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
How to setup JWT_KEY ? #10
Comments
Hi, The JWT secret is used to sign/validate the tokens and, thus, should be a strong and hopefully hard to crack/guess. You can set it to whatever you want, I just gave the suggestion of using the "openssl" CLI tool to generate a random string. Did you try setting the value of your JWT to other strings and see how it went? Are you setting a string value? |
Created JWT using crypto. And testing backend api its simply increadible. Thank you so much for sharing this really very valuable code 🥇 |
This is not issue I want to add OTP registration feature. How should I setup OTP verification in atlas I just want overview. As you have designed this product. |
Hi, One-time password? Like using SMS tokens? |
Yes it's something like that
…On 14-Jan-2017 4:13 PM, "André Tavares" ***@***.***> wrote:
Hi,
One-time password? Like using SMS tokens?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#10 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ANaQ0TA4RnNBDoabkFVElqI3qHAl26QPks5rSKbZgaJpZM4LY2M5>
.
|
I just want overview, I will implement it. |
I would perhaps update the Login API (POST /api/v1/login) so that, when OTP is enabled:
|
thank you so much 👍 |
Done. Thank you for OTP thing! |
My advice for deployment is to use Docker and I have provided a Dockerfile for both apps (nicistore and atlas). |
I have implemented OTP as you advised me to. Now I want to integrate Facebook and Google login how should I do it? Any idea? |
I haven't hosted a nodejs application to server. I got a vps server. Will anybody tell how to host it to production using docker file any tutorial available? |
|
Thank you sir. It really helps.
|
@andreftavares When Can't even get the app started. @phoenixvk did you encountered the same problem? |
What's the value you put there? |
Got it fixed. You didn't specify to replace |
Hello sir,
Will you please tell me how to setup JWT_KEY?
and elaborate meaning the meaning of
Create a JWT secret key (e.g. using openssl rand -base64 32) and either:
Setup the env variable JWT_KEY
Add it to the configuration file at config/development in app.jwtKey.
i.e. 6th step in guide.
I've setup the JWT but im getting error like JWT_KEY is malformed.
thank you.
The text was updated successfully, but these errors were encountered: