You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm thinking about implementing this feature.
And the best approach I can think of is user provides password to access this page. That password (not password hash) is set in configuration while middleware initializaiton, picked up from environment variable desirably. @okayshankha Do you have a better approach on your mind?
The text was updated successfully, but these errors were encountered:
Yes, this is the plan I'm primarily having as well. We can do something like the following.
const traceTrail = new TraceTrail('mongodb://localhost:27017/TraceTrail', {
authorization: {
username: String, // This value can be fetched from .env or some static value.
password: String // This value can be fetched from .env or some static value.
}
})
As we won't have multiple users or something like that, I think having username is just like making password lengthier for better security, for which we can just "make the password lengthier".
And the best approach I can think of is user provides password to access this page. That password (not password hash) is set in configuration while middleware initializaiton, picked up from environment variable desirably.
@okayshankha Do you have a better approach on your mind?
The text was updated successfully, but these errors were encountered: